projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6adc6d
)
powerpc/64/build: only include .opd with ELFv1
author
Nicholas Piggin
<npiggin@gmail.com>
Fri, 16 Sep 2022 04:07:53 +0000
(14:07 +1000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Mon, 26 Sep 2022 10:58:17 +0000
(20:58 +1000)
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
arch/powerpc/kernel/vmlinux.lds.S
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/vmlinux.lds.S
b/arch/powerpc/kernel/vmlinux.lds.S
index
fb697bc
..
4c38406
100644
(file)
--- 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) {