aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-06-02 14:49:37 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-06-02 14:49:37 -0700
commit4a4a4a27ba5c731044d3d3594545e6f06b0ec0e5 (patch)
treed95ef9a42f8b2455e8380d85980190ab33f4892a /ld/emulparams
parent0e05cf3a61e1996829359e1c32eedb6820930331 (diff)
downloadgdb-4a4a4a27ba5c731044d3d3594545e6f06b0ec0e5.zip
gdb-4a4a4a27ba5c731044d3d3594545e6f06b0ec0e5.tar.gz
gdb-4a4a4a27ba5c731044d3d3594545e6f06b0ec0e5.tar.bz2
x86: Remove linker option: -z prefix-nop
Since it is incorrect to convert bnd call *foo@GOTPCREL(%rip) to bnd nop call foo this patch removes the "-z prefix-nop" option from x86 linker. * emulparams/call_nop.sh: Remove -z prefix-nop. * ld.texinfo: Likewise. * testsuite/ld-i386/call3c.d: Check for linker error. * testsuite/ld-x86-64/call1c.d: Likewise.
Diffstat (limited to 'ld/emulparams')
-rw-r--r--ld/emulparams/call_nop.sh5
1 files changed, 0 insertions, 5 deletions
diff --git a/ld/emulparams/call_nop.sh b/ld/emulparams/call_nop.sh
index fee4a81..d45806c 100644
--- a/ld/emulparams/call_nop.sh
+++ b/ld/emulparams/call_nop.sh
@@ -10,11 +10,6 @@ PARSE_AND_LIST_ARGS_CASE_Z_CALL_NOP='
link_info.call_nop_as_suffix = FALSE;
link_info.call_nop_byte = 0x67;
}
- else if (strcmp (optarg + 9, "prefix-nop") == 0)
- {
- link_info.call_nop_as_suffix = FALSE;
- link_info.call_nop_byte = 0x90;
- }
else if (strcmp (optarg + 9, "suffix-nop") == 0)
{
link_info.call_nop_as_suffix = TRUE;