aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-sparc/tlssunbin32.dd
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2011-10-19 00:32:25 +0000
committerDavid S. Miller <davem@redhat.com>2011-10-19 00:32:25 +0000
commitabd242a90836b535b2f98be634e16c70012a3c5d (patch)
treecc8a899c08c32ce0693497c6fc2f96264706d761 /ld/testsuite/ld-sparc/tlssunbin32.dd
parent01b701aae6a81fc07a867fc3746587000aaa8c50 (diff)
downloadgdb-abd242a90836b535b2f98be634e16c70012a3c5d.zip
gdb-abd242a90836b535b2f98be634e16c70012a3c5d.tar.gz
gdb-abd242a90836b535b2f98be634e16c70012a3c5d.tar.bz2
Fix sparc TLS call relaxation when the delay slot sets up %o0.
bfd/ PR binutils/13301 * elfxx-sparc.c (sparc_elf_find_reloc_at_ofs): New function. (_bfd_sparc_elf_relocate_section): Always move the __tls_get_addr call delay slot instruction forward 4 bytes when performing relaxation. gold/ PR binutils/13301 * sparc.cc (Target_sparc::Relocate::reloc_adjust_addr_): New member to track relocation locations that have moved during TLS reloc optimizations. (Target_sparc::Relocate::Relocate): Initialize to NULL. (Target_sparc::Relocate::relocate): Adjust view down by 4 bytes if it matches reloc_adjust_addr_. (Target_sparc::Relocate::relocate_tls): Always move the __tls_get_addr call delay slot instruction forward 4 bytes when performing relaxation. ld/testsuite/ * ld-sparc/tlssunbin32.dd: Update for TLS call relaxation fix for PR 13301. * ld-sparc/tlssunbin64.dd: Likewise. * ld-sparc/tlssunpic32.dd: Likewise. * ld-sparc/tlssunpic64.dd: Likewise.
Diffstat (limited to 'ld/testsuite/ld-sparc/tlssunbin32.dd')
-rw-r--r--ld/testsuite/ld-sparc/tlssunbin32.dd8
1 files changed, 4 insertions, 4 deletions
diff --git a/ld/testsuite/ld-sparc/tlssunbin32.dd b/ld/testsuite/ld-sparc/tlssunbin32.dd
index 37c1d04..c31d190 100644
--- a/ld/testsuite/ld-sparc/tlssunbin32.dd
+++ b/ld/testsuite/ld-sparc/tlssunbin32.dd
@@ -27,8 +27,8 @@ Disassembly of section .text:
+11034: 01 00 00 00 nop *
+11038: d0 05 c0 12 ld \[ %l7 \+ %l2 \], %o0
+1103c: 01 00 00 00 nop *
- +11040: 90 01 c0 08 add %g7, %o0, %o0
- +11044: 01 00 00 00 nop *
+ +11040: 01 00 00 00 nop *
+ +11044: 90 01 c0 08 add %g7, %o0, %o0
+11048: 01 00 00 00 nop *
+1104c: 01 00 00 00 nop *
+11050: 01 00 00 00 nop *
@@ -36,8 +36,8 @@ Disassembly of section .text:
+11058: 11 00 00 00 sethi %hi\(0\), %o0
+1105c: 92 02 20 08 add %o0, 8, %o1 ! 8 <.*>
+11060: d0 05 c0 09 ld \[ %l7 \+ %o1 \], %o0
- +11064: 90 01 c0 08 add %g7, %o0, %o0
- +11068: 01 00 00 00 nop *
+ +11064: 01 00 00 00 nop *
+ +11068: 90 01 c0 08 add %g7, %o0, %o0
+1106c: 01 00 00 00 nop *
+11070: 01 00 00 00 nop *
+11074: 01 00 00 00 nop *