Commit c787fed1 authored by Nicholas Piggin's avatar Nicholas Piggin Committed by Michael Ellerman

powerpc/64/build: only include .opd with ELFv1

ELFv2 does not use function descriptors so .opd is not required.
Signed-off-by: default avatarNicholas Piggin <npiggin@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220916040755.2398112-6-npiggin@gmail.com
parent b6adc6d6
...@@ -180,11 +180,13 @@ SECTIONS ...@@ -180,11 +180,13 @@ SECTIONS
SOFT_MASK_TABLE(8) SOFT_MASK_TABLE(8)
RESTART_TABLE(8) RESTART_TABLE(8)
#ifdef CONFIG_PPC64_ELF_ABI_V1
.opd : AT(ADDR(.opd) - LOAD_OFFSET) { .opd : AT(ADDR(.opd) - LOAD_OFFSET) {
__start_opd = .; __start_opd = .;
KEEP(*(.opd)) KEEP(*(.opd))
__end_opd = .; __end_opd = .;
} }
#endif
. = ALIGN(8); . = ALIGN(8);
__stf_entry_barrier_fixup : AT(ADDR(__stf_entry_barrier_fixup) - LOAD_OFFSET) { __stf_entry_barrier_fixup : AT(ADDR(__stf_entry_barrier_fixup) - LOAD_OFFSET) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment