diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-08-10 02:58:45 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-08-10 02:58:45 +0000 |
commit | 302788ab451329b0a9b4f6add3f9c1c6d0384b7e (patch) | |
tree | a6ca1992b48fe7b6dfb10d56082d4a82dd3acd61 /gnu/usr.bin/binutils-2.17/ld/emulparams/elf64btsmip_obsd.sh | |
parent | f0299a82603773f9705aea2e4b23cfc878aae773 (diff) |
Cover your kid's remaining eye and lock up the pets for the great old ones
have been disturbed: rework the linker script and then enable RELRO support
on all but mips64 (something something padding) and m88k (untested).
This extends the RO coverage from just .got and .cdtors to also include
.openbsd.randomdata, .jcr, .dynamic, and .data.rel.ro., and moves more
segments from the text section to the rodata section. Depends on the
previous csu and ld.so work; reinstall those *before* rebuilding ld, or
just get a snapshot.
clues from kettenis
assistance testing and ok deraadt@
Diffstat (limited to 'gnu/usr.bin/binutils-2.17/ld/emulparams/elf64btsmip_obsd.sh')
-rw-r--r-- | gnu/usr.bin/binutils-2.17/ld/emulparams/elf64btsmip_obsd.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils-2.17/ld/emulparams/elf64btsmip_obsd.sh b/gnu/usr.bin/binutils-2.17/ld/emulparams/elf64btsmip_obsd.sh index f34e0ececd7..71dad530261 100644 --- a/gnu/usr.bin/binutils-2.17/ld/emulparams/elf64btsmip_obsd.sh +++ b/gnu/usr.bin/binutils-2.17/ld/emulparams/elf64btsmip_obsd.sh @@ -1,5 +1,6 @@ . ${srcdir}/emulparams/elf64btsmip.sh MAXPAGESIZE=0x10000 +COMMONPAGESIZE=0x1000 TEXT_START_ADDR="0x10000000" . ${srcdir}/emulparams/elf_obsd.sh # XXX causes GOT oflows |