diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-02-09 22:51:58 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-02-09 22:51:58 +0000 |
commit | 923f257ffd3a563dc4f81dd7d8c2236d8887c539 (patch) | |
tree | f9c123ef4fedcc4d82f264a59cca04ce4dbc95b3 /ld | |
parent | f8255c2a40ccc45f929b4ba2f20b74c52719b1a9 (diff) | |
download | gdb-923f257ffd3a563dc4f81dd7d8c2236d8887c539.zip gdb-923f257ffd3a563dc4f81dd7d8c2236d8887c539.tar.gz gdb-923f257ffd3a563dc4f81dd7d8c2236d8887c539.tar.bz2 |
Don't use multi byte nop instructions for i386
bfd/
2012-02-09 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13675
* cpu-i386.c (bfd_arch_i386_fill): Updated to support multi byte
nop instructions.
(bfd_arch_i386_short_nop_fill): New.
(bfd_arch_i386_long_nop_fill): Likewise.
Use bfd_arch_i386_short_nop_fill in 32bit bfd_arch_info
initializers. Use bfd_arch_i386_long_nop_fill on 64bit
bfd_arch_info initializers.
* cpu-k1om.c (bfd_arch_i386_fill): Renamed to ...
(bfd_arch_i386_short_nop_fill): This.
Update bfd_arch_info initializers.
* cpu-l1om.c: Likewise.
ld/testsuite/
2012-02-09 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13675
* ld-i386/tlsnopic.dd: Update no-op padding.
* ld-i386/tlspic.dd: Likewise.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/tlsnopic.dd | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/tlspic.dd | 3 |
3 files changed, 10 insertions, 2 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 037bfa0..b53cb8b 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2012-02-09 H.J. Lu <hongjiu.lu@intel.com> + + PR ld/13675 + * ld-i386/tlsnopic.dd: Update no-op padding. + * ld-i386/tlspic.dd: Likewise. + 2012-01-31 H.J. Lu <hongjiu.lu@intel.com> PR ld/13616 diff --git a/ld/testsuite/ld-i386/tlsnopic.dd b/ld/testsuite/ld-i386/tlsnopic.dd index d6a16d0..027d288 100644 --- a/ld/testsuite/ld-i386/tlsnopic.dd +++ b/ld/testsuite/ld-i386/tlsnopic.dd @@ -156,4 +156,5 @@ Disassembly of section .text: 10ec: 8b 5d fc[ ]+mov -0x4\(%ebp\),%ebx 10ef: c9[ ]+leave * 10f0: c3[ ]+ret * - 10f1: 0f 1f 00[ ]+nopl \(%eax\) + 10f1: 66 90[ ]+xchg %ax,%ax + 10f3: 90[ ]+nop diff --git a/ld/testsuite/ld-i386/tlspic.dd b/ld/testsuite/ld-i386/tlspic.dd index d85b385..ace06e6 100644 --- a/ld/testsuite/ld-i386/tlspic.dd +++ b/ld/testsuite/ld-i386/tlspic.dd @@ -406,4 +406,5 @@ Disassembly of section .text: [0-9a-f]+: 8b 5d fc[ ]+mov -0x4\(%ebp\),%ebx [0-9a-f]+: c9[ ]+leave * [0-9a-f]+: c3[ ]+ret * - [0-9a-f]+: 0f 1f 00[ ]+nopl \(%eax\) + [0-9a-f]+: 66 90[ ]+xchg %ax,%ax + [0-9a-f]+: 90[ ]+nop |