From 968f1745a4a5faa7d9c38510b0ff250e91409bff Mon Sep 17 00:00:00 2001 From: kettenis Date: Thu, 30 Apr 2015 17:56:18 +0000 Subject: [PATCH] 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@ --- gnu/usr.bin/binutils-2.17/ld/emulparams/elf_obsd.sh | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.20.1