summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2022-09-16 14:07:53 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2022-09-26 20:58:17 +1000
commitc787fed11890babda1e4882cd3b6efaf412e1bde (patch)
tree7fdc78db5b19b01d51ea97ebb78eb27fcba3fb49 /arch/powerpc
parentb6adc6d6d327229d75607a948cde2349d317f366 (diff)
downloadlinux-c787fed11890babda1e4882cd3b6efaf412e1bde.tar.gz
linux-c787fed11890babda1e4882cd3b6efaf412e1bde.tar.bz2
linux-c787fed11890babda1e4882cd3b6efaf412e1bde.zip
powerpc/64/build: only include .opd with ELFv1
ELFv2 does not use function descriptors so .opd is not required. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220916040755.2398112-6-npiggin@gmail.com
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kernel/vmlinux.lds.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S
index fb697bc4b4e7..4c38406384a9 100644
--- a/arch/powerpc/kernel/vmlinux.lds.S
+++ b/arch/powerpc/kernel/vmlinux.lds.S
@@ -180,11 +180,13 @@ SECTIONS
SOFT_MASK_TABLE(8)
RESTART_TABLE(8)
+#ifdef CONFIG_PPC64_ELF_ABI_V1
.opd : AT(ADDR(.opd) - LOAD_OFFSET) {
__start_opd = .;
KEEP(*(.opd))
__end_opd = .;
}
+#endif
. = ALIGN(8);
__stf_entry_barrier_fixup : AT(ADDR(__stf_entry_barrier_fixup) - LOAD_OFFSET) {