aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc/tls32.s
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2006-03-17 06:44:37 +0000
committerAlexandre Oliva <aoliva@redhat.com>2006-03-17 06:44:37 +0000
commite1710606c993baab0555429f130bbfd7a2fe3971 (patch)
treef3d338ef713b441c42b2d34ed092d765fbb0c4f1 /ld/testsuite/ld-powerpc/tls32.s
parent2de922512d6dede50c27e4af497e4b6fa5abb310 (diff)
downloadgdb-e1710606c993baab0555429f130bbfd7a2fe3971.zip
gdb-e1710606c993baab0555429f130bbfd7a2fe3971.tar.gz
gdb-e1710606c993baab0555429f130bbfd7a2fe3971.tar.bz2
bfd/ChangeLog:
* elf32-ppc.c (ppc_elf_relocate_section): Copy addend from first relocation to the second when relaxing TLS GD to LE; zero it out when relaxing to IE. ld/testsuite/ChangeLog: * ld-powerpc/tls32.s: Verify that +32768 @plt addend is discarded.
Diffstat (limited to 'ld/testsuite/ld-powerpc/tls32.s')
-rw-r--r--ld/testsuite/ld-powerpc/tls32.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/testsuite/ld-powerpc/tls32.s b/ld/testsuite/ld-powerpc/tls32.s
index b8d0e3d..1c3092d 100644
--- a/ld/testsuite/ld-powerpc/tls32.s
+++ b/ld/testsuite/ld-powerpc/tls32.s
@@ -33,11 +33,11 @@ _start:
#global syms
#GD
addi 3,31,gd0@got@tlsgd #R_PPC_GOT_TLSGD16 gd0
- bl __tls_get_addr@plt #R_PPC_PLTREL24 __tls_get_addr
+ bl __tls_get_addr+0x8000@plt #R_PPC_PLTREL24 __tls_get_addr
#LD
addi 3,31,ld0@got@tlsld #R_PPC_GOT_TLSLD16 ld0
- bl __tls_get_addr@plt #R_PPC_PLTREL24 __tls_get_addr
+ bl __tls_get_addr+0x8000@plt #R_PPC_PLTREL24 __tls_get_addr
addi 9,3,ld0@dtprel #R_PPC_DTPREL16 ld0