mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
cb8af559c1
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
37 lines
1.1 KiB
ArmAsm
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
|