old-cross-binutils/ld/testsuite/ld-mips-elf/tls-hidden2a.s
Richard Sandiford 4005427f86 bfd/
* elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
	has already been assigned a GOT index, copy that index to the
	current hash table entry.

ld/testsuite/
	* ld-mips-elf/tls-hidden2a.s, ld-mips-elf/tls-hidden2b.s,
	* ld/testsuite/ld-mips-elf/tls-hidden2.d,
	* ld/testsuite/ld-mips-elf/tls-hidden2-got.d: New test.
	* ld-mips-elf/mips-elf.exp: Run it.
2006-02-04 08:29:58 +00:00

11 lines
185 B
ArmAsm

.text
lw $2,%gottprel(tls_hidden)($28)
.section .tdata,"awT"
.globl tls_hidden
.hidden tls_hidden
.type tls_hidden,@object
.size tls_hidden,4
.space 0xba8
tls_hidden:
.word 1