Skip to content

Commit efe6e30

Browse files
arndbmasahir0y
authored andcommitted
kallsyms: fix nonconverging kallsyms table with lld
ARM randconfig builds with lld sometimes show a build failure from kallsyms: Inconsistent kallsyms data Try make KALLSYMS_EXTRA_PASS=1 as a workaround The problem is the veneers/thunks getting added by the linker extend the symbol table, which in turn leads to more veneers being needed, so it may take a few extra iterations to converge. This bug has been fixed multiple times before, but comes back every time a new symbol name is used. lld uses a different set of identifiers from ld.bfd, so the additional ones need to be added as well. I looked through the sources and found that arm64 and mips define similar prefixes, so I'm adding those as well, aside from the ones I observed. I'm not sure about powerpc64, which seems to already be handled through a section match, but if it comes back, the "__long_branch_" and "__plt_" prefixes would have to get added as well. Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 315da87 commit efe6e30

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/kallsyms.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ static bool is_ignored_symbol(const char *name, char type)
112112
"__crc_", /* modversions */
113113
"__efistub_", /* arm64 EFI stub namespace */
114114
"__kvm_nvhe_", /* arm64 non-VHE KVM namespace */
115+
"__AArch64ADRPThunk_", /* arm64 lld */
116+
"__ARMV5PILongThunk_", /* arm lld */
117+
"__ARMV7PILongThunk_",
118+
"__ThumbV7PILongThunk_",
119+
"__LA25Thunk_", /* mips lld */
120+
"__microLA25Thunk_",
115121
NULL
116122
};
117123

0 commit comments

Comments
 (0)