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 /bfd/cpu-k1om.c | |
parent | f8255c2a40ccc45f929b4ba2f20b74c52719b1a9 (diff) | |
download | binutils-gdb-923f257ffd3a563dc4f81dd7d8c2236d8887c539.tar.gz |
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 'bfd/cpu-k1om.c')
-rw-r--r-- | bfd/cpu-k1om.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bfd/cpu-k1om.c b/bfd/cpu-k1om.c index f9958e47155..54b6e58c1de 100644 --- a/bfd/cpu-k1om.c +++ b/bfd/cpu-k1om.c @@ -23,7 +23,8 @@ #include "bfd.h" #include "libbfd.h" -extern void * bfd_arch_i386_fill (bfd_size_type, bfd_boolean, bfd_boolean); +extern void * bfd_arch_i386_short_nop_fill (bfd_size_type, bfd_boolean, + bfd_boolean); static const bfd_arch_info_type bfd_k1om_arch_intel_syntax = { @@ -38,7 +39,7 @@ static const bfd_arch_info_type bfd_k1om_arch_intel_syntax = TRUE, bfd_default_compatible, bfd_default_scan, - bfd_arch_i386_fill, + bfd_arch_i386_short_nop_fill, 0 }; @@ -55,6 +56,6 @@ const bfd_arch_info_type bfd_k1om_arch = TRUE, bfd_default_compatible, bfd_default_scan, - bfd_arch_i386_fill, + bfd_arch_i386_short_nop_fill, &bfd_k1om_arch_intel_syntax }; |