diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2017-09-22 17:00:33 -0300 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2017-09-22 17:00:33 -0300 |
commit | 9e0703de64a6dd4deae2ebd569955f14337f2710 (patch) | |
tree | cec45139f1febef6441deabae142c3fb3f2c61f3 /ld/testsuite/ld-powerpc/tls.s | |
parent | 13b9f79a1904081d984a64037af6457c1e3ff7b6 (diff) | |
parent | 43573013c9836f2b91b74b9b29dac35fdb41e06b (diff) | |
download | gdb-9e0703de64a6dd4deae2ebd569955f14337f2710.zip gdb-9e0703de64a6dd4deae2ebd569955f14337f2710.tar.gz gdb-9e0703de64a6dd4deae2ebd569955f14337f2710.tar.bz2 |
Merge remote-tracking branch 'remotes/master' into users/aoliva/SFN
Updated local changes to binutils/testsuite/binutils-all/readelf.exp
to match the unresolved (failed to assemble) messages introduced by
Alan Modra.
Diffstat (limited to 'ld/testsuite/ld-powerpc/tls.s')
-rw-r--r-- | ld/testsuite/ld-powerpc/tls.s | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/ld/testsuite/ld-powerpc/tls.s b/ld/testsuite/ld-powerpc/tls.s index 49828d0..9bf69d3 100644 --- a/ld/testsuite/ld-powerpc/tls.s +++ b/ld/testsuite/ld-powerpc/tls.s @@ -29,23 +29,43 @@ _start: #extern syms #GD addi 3,2,gd@got@tlsgd #R_PPC64_GOT_TLSGD16 gd + .ifdef TLSMARK + bl __tls_get_addr(gd@tlsgd) #R_PPC64_TLSGD gd + #R_PPC64_REL24 __tls_get_addr + .else bl .__tls_get_addr #R_PPC64_REL24 .__tls_get_addr + .endif nop #LD addi 3,2,ld@got@tlsld #R_PPC64_GOT_TLSLD16 ld + .ifdef TLSMARK + bl __tls_get_addr(ld@tlsld) #R_PPC64_TLSLD ld + #R_PPC64_REL24 __tls_get_addr + .else bl .__tls_get_addr #R_PPC64_REL24 .__tls_get_addr + .endif nop #global syms #GD addi 3,2,gd0@got@tlsgd #R_PPC64_GOT_TLSGD16 gd0 + .ifdef TLSMARK + bl __tls_get_addr(gd0@tlsgd) #R_PPC64_TLSGD gd0 + #R_PPC64_REL24 __tls_get_addr + .else bl .__tls_get_addr #R_PPC64_REL24 .__tls_get_addr + .endif nop #LD addi 3,2,ld0@got@tlsld #R_PPC64_GOT_TLSLD16 ld0 + .ifdef TLSMARK + bl __tls_get_addr(ld0@tlsld) #R_PPC64_TLSLD ld0 + #R_PPC64_REL24 __tls_get_addr + .else bl .__tls_get_addr #R_PPC64_REL24 .__tls_get_addr + .endif nop addi 9,3,ld0@dtprel #R_PPC64_DTPREL16 ld0 @@ -69,12 +89,22 @@ _start: #local syms #GD addi 3,2,gd4@got@tlsgd #R_PPC64_GOT_TLSGD16 gd4 + .ifdef TLSMARK + bl __tls_get_addr(gd4@tlsgd) #R_PPC64_TLSGD gd4 + #R_PPC64_REL24 __tls_get_addr + .else bl .__tls_get_addr #R_PPC64_REL24 .__tls_get_addr + .endif nop #LD addi 3,2,ld4@got@tlsld #R_PPC64_GOT_TLSLD16 ld4 + .ifdef TLSMARK + bl __tls_get_addr(ld4@tlsld) #R_PPC64_TLSLD ld4 + #R_PPC64_REL24 __tls_get_addr + .else bl .__tls_get_addr #R_PPC64_REL24 .__tls_get_addr + .endif nop std 10,ld4@dtprel(3) #R_PPC64_DTPREL16_DS ld4 @@ -94,4 +124,3 @@ _start: addis 9,13,le5@tprel@ha #R_PPC64_TPREL16_HA le5 lha 10,le5@tprel@l(9) #R_PPC64_TPREL16_LO le5 - |