summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2023-02-04 21:20:41 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2023-02-04 21:20:41 +0000
commit0b76d1272902b5938a4abd9f2c6cc0030a6b9985 (patch)
tree374c68e92e93c6becb2535333b33a654d7fcb34f /gnu/usr.bin
parent9d827b4dfb7778e7fa31a3ab240b311fe142c726 (diff)
Make ld.bfd default to --execute-only on amd64.
ok deraadt@
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/binutils-2.17/ld/emulparams/elf_x86_64_obsd.sh1
-rw-r--r--gnu/usr.bin/binutils-2.17/ld/ldmain.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils-2.17/ld/emulparams/elf_x86_64_obsd.sh b/gnu/usr.bin/binutils-2.17/ld/emulparams/elf_x86_64_obsd.sh
index 9ee7192e068..8b5ee7a15eb 100644
--- a/gnu/usr.bin/binutils-2.17/ld/emulparams/elf_x86_64_obsd.sh
+++ b/gnu/usr.bin/binutils-2.17/ld/emulparams/elf_x86_64_obsd.sh
@@ -1,4 +1,5 @@
. ${srcdir}/emulparams/elf_x86_64.sh
. ${srcdir}/emulparams/elf_obsd.sh
+SCRIPT_NAME=elf_obsd
NOP=0x090909090
TRAP=0xcccccccc
diff --git a/gnu/usr.bin/binutils-2.17/ld/ldmain.c b/gnu/usr.bin/binutils-2.17/ld/ldmain.c
index 0fbe2d9bdc3..2fa24bd99b0 100644
--- a/gnu/usr.bin/binutils-2.17/ld/ldmain.c
+++ b/gnu/usr.bin/binutils-2.17/ld/ldmain.c
@@ -319,7 +319,7 @@ main (int argc, char **argv)
#else
link_info.emit_gnu_hash = FALSE;
#endif
-#if defined(__hppa__)
+#if defined(__amd64__) || defined(__hppa__)
link_info.execute_only = TRUE;
#else
link_info.execute_only = FALSE;