diff options
author | Masahiro Yamada | 2022-07-31 02:36:36 +0900 |
---|---|---|
committer | Masahiro Yamada | 2022-08-04 20:27:17 +0900 |
commit | a25efd6ef1ef4c32991a1d5a013dd41e3b8f7eff (patch) | |
tree | 9d98bd9db3634da0a4b622159b3307281f6ac643 | |
parent | 5419aa2a8deea06b796222d3215dac6adc270c78 (diff) |
Revert "Kbuild, lto, workaround: Don't warn for initcall_reference in modpost"
This reverts commit 77ab21adae509c5540956729e2d03bc1a59bc82a.
Even after 8 years later, GCC LTO has not been upstreamed. Also, it said
"This is a workaround". If this is needed in the future, it should be
added in a proper way.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: Jiri Slaby <jirislaby@kernel.org>
-rw-r--r-- | scripts/mod/modpost.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index c6a055c0291e..a8ee27496da7 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -1462,9 +1462,6 @@ static void default_mismatch_handler(const char *modname, struct elf_info *elf, from = find_elf_symbol2(elf, r->r_offset, fromsec); fromsym = sym_name(elf, from); - if (strstarts(fromsym, "reference___initcall")) - return; - tosec = sec_name(elf, get_secindex(elf, sym)); to = find_elf_symbol(elf, r->r_addend, sym); tosym = sym_name(elf, to); |