summaryrefslogtreecommitdiffstats
path: root/scripts/link-vmlinux.sh
diff options
context:
space:
mode:
authorSong Liu <song@kernel.org>2024-08-08 00:05:12 +0200
committerKees Cook <kees@kernel.org>2024-08-15 18:33:34 +0200
commit020925ce92990c3bf59ab2cde386ac6d9ec734ff (patch)
treef7212fd3cbd2bcd9521da7c1198e4e1c8e2c43f8 /scripts/link-vmlinux.sh
parentkunit/overflow: Fix UB in overflow_allocation_test (diff)
downloadlinux-020925ce92990c3bf59ab2cde386ac6d9ec734ff.tar.xz
linux-020925ce92990c3bf59ab2cde386ac6d9ec734ff.zip
kallsyms: Do not cleanup .llvm.<hash> suffix before sorting symbols
Cleaning up the symbols causes various issues afterwards. Let's sort the list based on original name. Signed-off-by: Song Liu <song@kernel.org> Fixes: 8cc32a9bbf29 ("kallsyms: strip LTO-only suffixes from promoted global functions") Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Tested-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Acked-by: Petr Mladek <pmladek@suse.com> Reviewed-by: Sami Tolvanen <samitolvanen@google.com> Reviewed-by: Luis Chamberlain <mcgrof@kernel.org> Link: https://lore.kernel.org/r/20240807220513.3100483-2-song@kernel.org Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to '')
-rwxr-xr-xscripts/link-vmlinux.sh4
1 files changed, 0 insertions, 4 deletions
diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
index f7b2503cdba9..22d0bc843986 100755
--- a/scripts/link-vmlinux.sh
+++ b/scripts/link-vmlinux.sh
@@ -156,10 +156,6 @@ kallsyms()
kallsymopt="${kallsymopt} --absolute-percpu"
fi
- if is_enabled CONFIG_LTO_CLANG; then
- kallsymopt="${kallsymopt} --lto-clang"
- fi
-
info KSYMS "${2}.S"
scripts/kallsyms ${kallsymopt} "${1}" > "${2}.S"