mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-24 09:43:36 +08:00
ac73473248
bfd/ 2015-10-02 Renlin Li <renlin.li@arm.com> * elfnn-aarch64.c(IS_AARCH64_TLS_RELAX_RELOC): Add relaxation support for TLSGD_MOVW_G0_NC and TLSGD_MOVW_G1. (aarch64_tls_transition_without_check): Likewise (elfNN_aarch64_tls_relax): Likwise. ld/testsuite/ 2015-10-02 Renlin Li <renlin.li@arm.com> * ld-aarch64/aarch64-elf.exp: run new test * ld-aarch64/tls-relax-large-gd-ie.d: New. * ld-aarch64/tls-relax-large-gd-ie.s: New. * ld-aarch64/tls-relax-large-gd-le.d: New. * ld-aarch64/tls-relax-large-gd-le.s: New.
20 lines
241 B
ArmAsm
20 lines
241 B
ArmAsm
.section .tdata
|
|
var:
|
|
.word 2
|
|
|
|
.text
|
|
test:
|
|
ldr x1, .Lgot
|
|
adr x2, .Lgot
|
|
add x1, x2, x1
|
|
|
|
movz x0, #:tlsgd_g1:var
|
|
movk x0, #:tlsgd_g0_nc:var
|
|
add x0, x1, x0
|
|
bl __tls_get_addr
|
|
nop
|
|
ldr w0, [x0]
|
|
|
|
.Lgot:
|
|
.dword _GLOBAL_OFFSET_TABLE_ - .
|