summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/ld/scripttempl/elf.sc
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-05-25 20:41:55 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-05-25 20:41:55 +0000
commit96e577cbbba94b53c4e78078d48ac90b9049af68 (patch)
treeb5f3847abbf3d41de091c26dd225fc2353e9d4f6 /gnu/usr.bin/binutils/ld/scripttempl/elf.sc
parenteb758dbe9b0619b1f556461cbd8b19625970954a (diff)
provide a way data plt prepending got; drahn@ ok
Diffstat (limited to 'gnu/usr.bin/binutils/ld/scripttempl/elf.sc')
-rw-r--r--gnu/usr.bin/binutils/ld/scripttempl/elf.sc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/ld/scripttempl/elf.sc b/gnu/usr.bin/binutils/ld/scripttempl/elf.sc
index f68adcaaaf4..fb4b168e350 100644
--- a/gnu/usr.bin/binutils/ld/scripttempl/elf.sc
+++ b/gnu/usr.bin/binutils/ld/scripttempl/elf.sc
@@ -264,7 +264,7 @@ cat <<EOF
${RELOCATING+${INIT_END}}
} =${NOP-0}
- ${DATA_PLT-${BSS_PLT-${PLT}}}
+ ${DATA_PLT-${DATA_NONEXEC_PLT-${BSS_PLT-${PLT}}}}
.text ${RELOCATING-0} :
{
${RELOCATING+${TEXT_START_SYMBOLS}}
@@ -333,6 +333,7 @@ cat <<EOF
${DATA_PLT+${PLT}}
${DATA_PLT+${PAD_PLT+${PAD_PLT1}}}
${PAD_GOT+${PAD_GOT0}}
+ ${DATA_NONEXEC_PLT+${PLT}}
${RELOCATING+${OTHER_GOT_SYMBOLS}}
.got ${RELOCATING-0} : { *(.got.plt) *(.got) }
/* CTOR and DTOR relocated here to receive mprotect protection after,