From 923f257ffd3a563dc4f81dd7d8c2236d8887c539 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 9 Feb 2012 22:51:58 +0000 Subject: Don't use multi byte nop instructions for i386 bfd/ 2012-02-09 H.J. Lu 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 PR ld/13675 * ld-i386/tlsnopic.dd: Update no-op padding. * ld-i386/tlspic.dd: Likewise. --- ld/testsuite/ld-i386/tlsnopic.dd | 3 ++- ld/testsuite/ld-i386/tlspic.dd | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'ld/testsuite/ld-i386') 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 -- cgit v1.1