commit | b13cf8585df2cc51d594bdcfe46bd9e876501d7e | [log] [tgz] |
---|---|---|
author | Sami Tolvanen <samitolvanen@google.com> | Fri Dec 08 15:49:24 2017 -0800 |
committer | Sami Tolvanen <samitolvanen@google.com> | Wed Feb 28 15:09:58 2018 -0800 |
tree | ac7c1f437e454b9dce1bb9a90ce4ace765f962ed | |
parent | aadfde875ddcf324b38799297979e72f43f801c4 [diff] |
HACK: init: ensure initcall ordering with LTO With LTO, LLVM sorts initcalls in a single translation unit alphabetically based on the name of the function (or actually, the variable stored in the initcall section). Use __COUNTER__ in the variable name in an attempt to preserve the intended order. Bug: 62093296 Bug: 67506682 Change-Id: I4fa3cb93cba967a1440ac53328eb6b8ac649ff36 Signed-off-by: Sami Tolvanen <samitolvanen@google.com>