From: kettenis Date: Thu, 30 Apr 2015 17:56:18 +0000 (+0000) Subject: Unset SEPARATE_GOTPLT. We don't want a seperate .got.plt section on OpenBSD, X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=968f1745a4a5faa7d9c38510b0ff250e91409bff;p=openbsd Unset SEPARATE_GOTPLT. We don't want a seperate .got.plt section on OpenBSD, at least for now, as it would result in a partially writable GOT. Our ld.so(1) has the smarts to properly write-protect the single .got, so we don't need this. ok guenther@ --- diff --git a/gnu/usr.bin/binutils-2.17/ld/emulparams/elf_obsd.sh b/gnu/usr.bin/binutils-2.17/ld/emulparams/elf_obsd.sh index 37e0d51e8f5..948506df40a 100644 --- a/gnu/usr.bin/binutils-2.17/ld/emulparams/elf_obsd.sh +++ b/gnu/usr.bin/binutils-2.17/ld/emulparams/elf_obsd.sh @@ -6,3 +6,5 @@ RODATA_ALIGN=". = ALIGN(${RODATA_PADSIZE}) + (. & (${RODATA_PADSIZE} - 1))" PAD_GOT= PAD_PLT= DATA_START_SYMBOLS='__data_start = . ;' + +unset SEPARATE_GOTPLT