binutils-gdb/ld/testsuite/ld-aarch64/gc-relocs-tlsle.s
Nick Clifton cb8af559c1 * elf64-aarch64.c (elf64_aarch64_gc_sweep_hook): Use
elf64_aarch64_locals to get local GOT reference counts.

        * ld-aarch64/gc-relocs-tlsle.s: New gc section test.
        * ld-aarch64/gc-relocs-tlsle.s: Likewise
        * ld-aarch64/gc-relocs-tlsgd.s: Likewise
        * ld-aarch64/gc-relocs-tlsdesc.s: Likewise
        * ld-aarch64/gc-relocs-312.s: Likewise
        * ld-aarch64/gc-relocs-311.s: Likewise
        * ld-aarch64/gc-relocs-309.s: Likewise
        * ld-aarch64/gc-start.s: Likewise
        * ld-aarch64/gc-got-relocs.d: Update expected objdump
        * ld-aarch64/gc-tls-relocs.d: Likewise
        * ld-aarch64/aarch64-elf.exp: add test
2013-04-03 14:21:18 +00:00

37 lines
1.1 KiB
ArmAsm

.global tlslevar
.section .tbss,"awT",%nobits
.align 2
.type tlslevar, %object
.size tlslevar, 4
tlslevar:
.zero 4
.align 2
.type l_tlslevar, %object
.size l_tlslevar, 4
l_tlslevar:
.zero 4
.text
l_test_tls_le:
// R_AARCH64_TLSLE_ADD_TPREL_LO12 tlslevar
add x0, x1, :tprel_lo12:tlslevar
// R_AARCH64_TLSLE_ADD_TPREL_HI12 tlslevar
add x0, x1, :tprel_hi12:tlslevar
// R_AARCH64_TLSLE_ADD_TPREL_HI12 tlslevar
add x0, x1, :tprel_hi12:tlslevar, lsl #12
// R_AARCH64_TLSLE_ADD_TPREL_LO12_NC tlslevar
add x0, x1, :tprel_lo12_nc:tlslevar
l_test_tls_le_local:
// R_AARCH64_TLSLE_ADD_TPREL_LO12 l_tlslevar
add x0, x1, :tprel_lo12:l_tlslevar
// R_AARCH64_TLSLE_ADD_TPREL_HI12 l_tlslevar
add x0, x1, :tprel_hi12:l_tlslevar
// R_AARCH64_TLSLE_ADD_TPREL_HI12 l_tlslevar
add x0, x1, :tprel_hi12:l_tlslevar, lsl #12
// R_AARCH64_TLSLE_ADD_TPREL_LO12_NC l_tlslevar
add x0, x1, :tprel_lo12_nc:l_tlslevar