summaryrefslogtreecommitdiffstats
path: root/scripts/mksysmap
diff options
context:
space:
mode:
authorPierre-Clément Tosi <ptosi@google.com>2023-06-06 20:19:36 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2023-06-07 15:41:08 +0200
commit200dd957a7a72278363a8f2a49d2e90491bdb1b4 (patch)
tree97aecb15ccae690fd5dd1a2fd31c307851a37473 /scripts/mksysmap
parentscripts/mksysmap: Fix badly escaped '$' (diff)
downloadlinux-200dd957a7a72278363a8f2a49d2e90491bdb1b4.tar.xz
linux-200dd957a7a72278363a8f2a49d2e90491bdb1b4.zip
scripts/mksysmap: Ignore __pi_ local arm64 symbols
Similarly to "__kvm_nvhe_", filter out any local symbol that was prefixed with "__pi_" (generated when CONFIG_RANDOMIZE_BASE=y) when compiling System.map and in kallsyms. Signed-off-by: Pierre-Clément Tosi <ptosi@google.com> Acked-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/mksysmap')
-rwxr-xr-xscripts/mksysmap4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/mksysmap b/scripts/mksysmap
index ec3338526102..26f39772f7a5 100755
--- a/scripts/mksysmap
+++ b/scripts/mksysmap
@@ -40,6 +40,10 @@ ${NM} -n ${1} | sed >${2} -e "
# arm64 EFI stub namespace
/ __efistub_/d
+# arm64 local symbols in PIE namespace
+/ __pi_\\$/d
+/ __pi_\.L/d
+
# arm64 local symbols in non-VHE KVM namespace
/ __kvm_nvhe_\\$/d
/ __kvm_nvhe_\.L/d