mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
86038de0d8
These all were odd in that they used r13 as the GOT pointer. That didn't matter for the purpose of testing, but would never occur in practice. Also, the tlsopt5 tests could have their global dynamic sequences optimized to initial exec, so link with -shared. * testsuite/ld-powerpc/powerpc.exp: Add -shared to tlsop5 tests. * testsuite/ld-powerpc/tlsopt5.d: Adjust. * testsuite/ld-powerpc/tlsopt1_32.s: Use r30 as GOT pointer. * testsuite/ld-powerpc/tlsopt2_32.s: Likewise. * testsuite/ld-powerpc/tlsopt3_32.s: Likewise. * testsuite/ld-powerpc/tlsopt4_32.s: Likewise. * testsuite/ld-powerpc/tlsopt5_32.s: Rewrite. * testsuite/ld-powerpc/tlsopt1_32.d: Adjust. * testsuite/ld-powerpc/tlsopt2_32.d: Adjust. * testsuite/ld-powerpc/tlsopt3_32.d: Adjust. * testsuite/ld-powerpc/tlsopt5_32.d: Adjust.
13 lines
300 B
ArmAsm
13 lines
300 B
ArmAsm
.section ".no_opt1", "ax", %progbits
|
|
# this section should not be optimised since we have old-style
|
|
# __tls_get_addr without marker relocs, and the arg setup insn
|
|
# is shared with two __tls_get_addr calls.
|
|
addi 3,30,gd@got@tlsgd
|
|
cmpwi 4,0
|
|
beq 0f
|
|
bl __tls_get_addr
|
|
b 1f
|
|
0:
|
|
bl __tls_get_addr
|
|
1:
|