Skip to content

Commit

Permalink
Revert "Kbuild, lto, workaround: Don't warn for initcall_reference in…
Browse files Browse the repository at this point in the history
… modpost"

This reverts commit 77ab21a.

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 <[email protected]>
Reviewed-by: Nick Desaulniers <[email protected]>
Acked-by: Jiri Slaby <[email protected]>
  • Loading branch information
masahir0y committed Aug 4, 2022
1 parent 5419aa2 commit a25efd6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a25efd6

Please sign in to comment.