Make ld.bfd default to --execute-only on amd64.
authorkettenis <kettenis@openbsd.org>
Sat, 4 Feb 2023 21:20:40 +0000 (21:20 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 4 Feb 2023 21:20:40 +0000 (21:20 +0000)
ok deraadt@

gnu/usr.bin/binutils-2.17/ld/emulparams/elf_x86_64_obsd.sh
gnu/usr.bin/binutils-2.17/ld/ldmain.c

index 9ee7192..8b5ee7a 100644 (file)
@@ -1,4 +1,5 @@
 . ${srcdir}/emulparams/elf_x86_64.sh
 . ${srcdir}/emulparams/elf_obsd.sh
+SCRIPT_NAME=elf_obsd
 NOP=0x090909090
 TRAP=0xcccccccc
index 0fbe2d9..2fa24bd 100644 (file)
@@ -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;