mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +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
30 lines
734 B
ArmAsm
30 lines
734 B
ArmAsm
.global tlsievar
|
|
.section .tbss,"awT",%nobits
|
|
.align 2
|
|
.type tlsievar, %object
|
|
.size tlsievar, 4
|
|
tlsievar:
|
|
.zero 4
|
|
|
|
.align 2
|
|
.type l_tlsievar, %object
|
|
.size l_tlsievar, 4
|
|
l_tlsievar:
|
|
.zero 4
|
|
|
|
.text
|
|
_test_tls_IE:
|
|
|
|
// R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 tlsievar
|
|
adrp x0, :gottprel:tlsievar
|
|
// R_AARCH64_TLSIE_GOTTPREL_LO12_NC tlsievar
|
|
ldr x0, [x0, :gottprel_lo12:tlsievar]
|
|
|
|
_test_tls_IE_local:
|
|
|
|
// R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 l_tlsievar
|
|
adrp x0, :gottprel:l_tlsievar
|
|
// R_AARCH64_TLSIE_GOTTPREL_LO12_NC l_tlsievar
|
|
ldr x0, [x0, :gottprel_lo12:l_tlsievar]
|
|
|