kallsyms: ignore ARMv4 thunks along with others
authorArnd Bergmann <arnd@arndb.de>
Thu, 15 Feb 2024 08:32:08 +0000 (09:32 +0100)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 15 Feb 2024 13:44:56 +0000 (22:44 +0900)
commita951884d82886d8453d489f84f20ac168d062b38
treeb64d36b7f3e53e98351810fd274e4b3747f5a7cc
parent5d9a16b2a4d9e8fa028892ded43f6501bc2969e5
kallsyms: ignore ARMv4 thunks along with others

lld is now able to build ARMv4 and ARMv4T kernels, which means it can
generate thunks for those (__ARMv4PILongThunk_*, __ARMv4PILongBXThunk_*)
that can interfere with kallsyms table generation since they do not get
ignore like the corresponding ARMv5+ ones are:

Inconsistent kallsyms data
Try "make KALLSYMS_EXTRA_PASS=1" as a workaround

Replace the hardcoded list of thunk symbols with a more general regex that
covers this one along with future symbols that follow the same pattern.

Fixes: 5eb6e280432d ("ARM: 9289/1: Allow pre-ARMv5 builds with ld.lld 16.0.0 and newer")
Fixes: efe6e3068067 ("kallsyms: fix nonconverging kallsyms table with lld")
Suggested-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/mksysmap