summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2013-03-30 21:31:21 +0000
committermiod <miod@openbsd.org>2013-03-30 21:31:21 +0000
commite745e9c828a7843732351b6a77417fa54abb04b2 (patch)
tree9c388f9e0bc0eaba041d1047197fd2b58886f54f
parentCorrectly report `weak' status of non-function symbols. Makes nm agree with (diff)
downloadwireguard-openbsd-e745e9c828a7843732351b6a77417fa54abb04b2.tar.xz
wireguard-openbsd-e745e9c828a7843732351b6a77417fa54abb04b2.zip
Revert ppc/OpenBSD to the binutils 2.15 state, with only BSS_PLT and
disable secure plt. This lets a binutils 2.17 toolchain produce working binaries, until a working way to get proper padding sections (and boundary symbols) emitted with proper value once .plt position is decided is found, when .plt can exist at multiple places in the binary.
-rw-r--r--gnu/usr.bin/binutils-2.17/ld/emulparams/elf32ppc_obsd.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils-2.17/ld/emulparams/elf32ppc_obsd.sh b/gnu/usr.bin/binutils-2.17/ld/emulparams/elf32ppc_obsd.sh
index 63d838343a6..d15403925f1 100644
--- a/gnu/usr.bin/binutils-2.17/ld/emulparams/elf32ppc_obsd.sh
+++ b/gnu/usr.bin/binutils-2.17/ld/emulparams/elf32ppc_obsd.sh
@@ -1,2 +1,14 @@
-. ${srcdir}/emulparams/elf32ppc.sh
+# . ${srcdir}/emulparams/elf32ppc.sh
+. ${srcdir}/emulparams/elf32ppccommon.sh
+## # Yes, we want duplicate .got and .plt sections. The linker chooses the
+## # appropriate one magically in ppc_after_open
+## DATA_GOT=
+## SDATA_GOT=
+## SEPARATE_GOTPLT=0
+BSS_PLT=
+## GOT=".got ${RELOCATING-0} : SPECIAL { *(.got) }"
+## PLT=".plt ${RELOCATING-0} : SPECIAL { *(.plt) }"
+## GOTPLT="${PLT}"
+## OTHER_TEXT_SECTIONS="*(.glink)"
+## EXTRA_EM_FILE=ppc32elf
. ${srcdir}/emulparams/elf_obsd.sh