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/hppaobsd.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/hppaobsd.sh')
-rw-r--r-- | gnu/usr.bin/binutils-2.17/ld/emulparams/hppaobsd.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils-2.17/ld/emulparams/hppaobsd.sh b/gnu/usr.bin/binutils-2.17/ld/emulparams/hppaobsd.sh index 16f5a62ba40..32ac7ca268c 100644 --- a/gnu/usr.bin/binutils-2.17/ld/emulparams/hppaobsd.sh +++ b/gnu/usr.bin/binutils-2.17/ld/emulparams/hppaobsd.sh @@ -7,6 +7,7 @@ OUTPUT_FORMAT="elf32-hppa" # other necessary defines, similar but not the same as linux. MAXPAGESIZE=0x1000 +COMMONPAGESIZE=0x1000 ENTRY="__start" MACHINE=hppa1.1 # We use 1.1 specific features. OTHER_READONLY_SECTIONS=".PARISC.unwind ${RELOCATING-0} : { *(.PARISC.unwind) }" |