summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2013-03-21 22:31:44 +0000
committermiod <miod@openbsd.org>2013-03-21 22:31:44 +0000
commit4fd6915c442ae91041a013221cac2d322421415f (patch)
tree63b3b93bc1f33caa4480ad81cb2434be570881b8
parentNKMEMPAGES_MIN went away a long time ago. wording help from jmc. (diff)
downloadwireguard-openbsd-4fd6915c442ae91041a013221cac2d322421415f.tar.xz
wireguard-openbsd-4fd6915c442ae91041a013221cac2d322421415f.zip
Don't set TEXT_PLT if PLT_BEFORE_GOT.
-rw-r--r--gnu/usr.bin/binutils-2.17/ld/scripttempl/elf.sc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils-2.17/ld/scripttempl/elf.sc b/gnu/usr.bin/binutils-2.17/ld/scripttempl/elf.sc
index 3e0a775de59..53148bafc88 100644
--- a/gnu/usr.bin/binutils-2.17/ld/scripttempl/elf.sc
+++ b/gnu/usr.bin/binutils-2.17/ld/scripttempl/elf.sc
@@ -106,7 +106,7 @@ INTERP=".interp ${RELOCATING-0} : { *(.interp) }"
if test -z "$PLT"; then
PLT=".plt ${RELOCATING-0} : { *(.plt) }"
fi
-test -n "${DATA_PLT-${BSS_PLT-text}}" && TEXT_PLT=yes
+test -n "${PLT_BEFORE_GOT-${DATA_PLT-${BSS_PLT-text}}}" && TEXT_PLT=yes
if test -z "$GOT"; then
if test -z "$SEPARATE_GOTPLT"; then
GOT=".got ${RELOCATING-0} : { *(.got.plt) *(.got) }"