summaryrefslogtreecommitdiffstats
path: root/scripts/link-vmlinux.sh
diff options
context:
space:
mode:
authorNathan Chancellor <nathan@kernel.org>2026-02-12 11:28:27 -0500
committerNathan Chancellor <nathan@kernel.org>2026-02-12 11:28:27 -0500
commitdf989b01b5f97dae8f9869cfacbda1308f2182c1 (patch)
treed150f91b9c27af17590ee54f5b2f778529e916d5 /scripts/link-vmlinux.sh
parent05f7e89ab9731565d8a62e3b5d1ec206485eeb0b (diff)
parentd8ad80a85b96649a6ef30976762660245ae61a25 (diff)
downloadlinux-df989b01b5f97dae8f9869cfacbda1308f2182c1.tar.gz
linux-df989b01b5f97dae8f9869cfacbda1308f2182c1.zip
Merge 7.0 Kbuild changes into kbuild-fixes
kbuild-fixes needs to be based on 6.19 to apply some fixes for 62089b804895 ("kbuild: rpm-pkg: Generate debuginfo package manually") which landed in 6.19-rc1 but the new material of 7.0 needs fixes merged as well. Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Diffstat (limited to 'scripts/link-vmlinux.sh')
-rwxr-xr-xscripts/link-vmlinux.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
index 4ab44c73da4d..73531cb63efc 100755
--- a/scripts/link-vmlinux.sh
+++ b/scripts/link-vmlinux.sh
@@ -143,6 +143,10 @@ kallsyms()
kallsymopt="${kallsymopt} --all-symbols"
fi
+ if is_enabled CONFIG_64BIT || is_enabled CONFIG_RELOCATABLE; then
+ kallsymopt="${kallsymopt} --pc-relative"
+ fi
+
info KSYMS "${2}.S"
scripts/kallsyms ${kallsymopt} "${1}" > "${2}.S"