Re-add support for lbarx, lharx, stbcx. and sthcx. insns back to the E6500 cpu.
[binutils-gdb.git] / ld / testsuite / ld-aarch64 / gc-relocs-tlsgd.s
blobac904753d7ad1de9d0dad90a6a484c44ccc7c9fb
1 .global tlsgdvar
2 .section .tbss,"awT",%nobits
3 .align 2
4 .type tlsgdvar, %object
5 .size tlsgdvar, 4
6 tlsgdvar:
7 .zero 4
8 .align 2
9 .type l_tlsgdvar, %object
10 .size l_tlsgdvar, 4
11 l_tlsgdvar:
12 .zero 4
14 .text
15 _test_tls_gd:
16 // R_AARCH64_TLSGD_ADR_PAGE21 tldgdvar
17 adrp x0, :tlsgd:tlsgdvar
18 // R_AARCH64_TLSGD_ADD_LO12_NC tlsgdvar
19 add x0, x0, :tlsgd_lo12:tlsgdvar
20 // R_AARCH64_CALL26
21 bl __tls_get_addr
23 _test_tls_gd_local:
24 // R_AARCH64_TLSGD_ADR_PAGE21 l_tldgdvar
25 adrp x0, :tlsgd:l_tlsgdvar
26 // R_AARCH64_TLSGD_ADD_LO12_NC l_tlsgdvar
27 add x0, x0, :tlsgd_lo12:l_tlsgdvar
28 // R_AARCH64_CALL26
29 bl __tls_get_addr