From: kettenis Date: Sat, 4 Feb 2023 21:20:40 +0000 (+0000) Subject: Make ld.bfd default to --execute-only on amd64. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cda64c0f886397e4adeb75ba491959f8dc0e9f35;p=openbsd Make ld.bfd default to --execute-only on amd64. ok deraadt@ --- 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;