summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/ld/emulparams/elf_x86_64.sh
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2018-03-28 16:58:24 +0000
committeremaste <emaste@FreeBSD.org>2018-03-28 16:58:24 +0000
commit71918e8f61597def8a0205b9b259f791777bbdc9 (patch)
tree7190d3ab17f61d64dcde3f84ff9db34a6986926f /contrib/binutils/ld/emulparams/elf_x86_64.sh
parent897710e98a0b0e19215469cbc1bad8edced933e8 (diff)
downloadFreeBSD-src-71918e8f61597def8a0205b9b259f791777bbdc9.zip
FreeBSD-src-71918e8f61597def8a0205b9b259f791777bbdc9.tar.gz
MFC r315522: use INT3 instead of NOP for x86 binary padding
We should never end up executing the inter-function padding, so we are better off faulting than silently carrying on to whatever function happens to be next. Note that LLD does this by default. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'contrib/binutils/ld/emulparams/elf_x86_64.sh')
-rw-r--r--contrib/binutils/ld/emulparams/elf_x86_64.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/binutils/ld/emulparams/elf_x86_64.sh b/contrib/binutils/ld/emulparams/elf_x86_64.sh
index 449ccc9..08ad514 100644
--- a/contrib/binutils/ld/emulparams/elf_x86_64.sh
+++ b/contrib/binutils/ld/emulparams/elf_x86_64.sh
@@ -7,7 +7,7 @@ COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
NONPAGED_TEXT_START_ADDR=0x400000
ARCH="i386:x86-64"
MACHINE=
-NOP=0x90909090
+NOP=0xCCCCCCCC
TEMPLATE_NAME=elf32
GENERATE_SHLIB_SCRIPT=yes
GENERATE_PIE_SCRIPT=yes
OpenPOWER on IntegriCloud