diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-06-02 14:49:37 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-06-02 14:49:37 -0700 |
commit | 4a4a4a27ba5c731044d3d3594545e6f06b0ec0e5 (patch) | |
tree | d95ef9a42f8b2455e8380d85980190ab33f4892a /ld/emulparams | |
parent | 0e05cf3a61e1996829359e1c32eedb6820930331 (diff) | |
download | gdb-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.sh | 5 |
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; |