mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
3bd43ebcb6
When --gc-sections is active, __tls_get_addr_opt is marked as not needed and forced local before ppc*_elf_tls_setup is run. bfd/ PR 20060 * elf64-ppc.c (ppc64_elf_tls_setup): Clear forced_local. * elf32-ppc.c (ppc_elf_tls_setup): Likewise. ld/ PR 20060 * testsuite/ld-powerpc/powerpc.exp: Run new tests. * testsuite/ld-powerpc/tlsdll.s: New. * testsuite/ld-powerpc/tlsdll.ver: New. * testsuite/ld-powerpc/tlsdll_32.s: New. * testsuite/ld-powerpc/tlsopt5.d: New. * testsuite/ld-powerpc/tlsopt5.s: New. * testsuite/ld-powerpc/tlsopt5_32.d: New. * testsuite/ld-powerpc/tlsopt5_32.s: New.
19 lines
381 B
ArmAsm
19 lines
381 B
ArmAsm
.global __tls_get_addr,__tls_get_addr_opt,gd,ld
|
|
.type __tls_get_addr,@function
|
|
.type __tls_get_addr_opt,@function
|
|
|
|
.text
|
|
__tls_get_addr:
|
|
__tls_get_addr_opt:
|
|
blr
|
|
.size __tls_get_addr,. - __tls_get_addr
|
|
.size __tls_get_addr_opt,. - __tls_get_addr_opt
|
|
|
|
.section ".tbss","awT",@nobits
|
|
.p2align 2
|
|
gd: .space 4
|
|
|
|
.section ".tdata","awT",@progbits
|
|
.p2align 2
|
|
ld: .long 0xc0ffee
|