mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
5139cfdb55
Correct a commitec9ab52c32
("gas: consistently emit diagnostics for non-zero data emission to .bss/.struct"), <https://sourceware.org/ml/binutils/2015-12/msg00073.html> regression: .../ld/testsuite/ld-mips-elf/tls-multi-got-1-1.s: Assembler messages: .../ld/testsuite/ld-mips-elf/tls-multi-got-1-1.s:39: Error: attempt to store non-zero value in section `.tbss' ERROR: -EB -march=mips1 -32 -KPIC .../ld/testsuite/ld-mips-elf/tls-multi-got-1-1.s: assembly failed UNRESOLVED: Shared library with multiple GOTs and TLS in MIPS target testing and move `tlsvar_ld' to `.tdata' section, in line with the remaining local dynamic definitions introduced with the set of tests added with commitf4e584bd00
("TLS support for MIPS"), <https://sourceware.org/ml/binutils/2005-02/msg00607.html>. ld/ * testsuite/ld-mips-elf/tls-multi-got-1-1.s: Place `tlsvar_ld' in `.tdata' section. * testsuite/ld-mips-elf/tls-multi-got-1.got: Adjust accordingly. * testsuite/ld-mips-elf/tls-multi-got-1.r: Likewise.
43 lines
880 B
ArmAsm
43 lines
880 B
ArmAsm
.macro one_sym count
|
|
.globl sym_1_\count
|
|
sym_1_\count:
|
|
la $2, sym_1_\count
|
|
.endm
|
|
|
|
.irp thou,0,1,2,3,4,5,6,7,8,9
|
|
.irp hund,0,1,2,3,4,5,6,7,8,9
|
|
.irp tens,0,1,2,3,4,5,6,7,8,9
|
|
.irp ones,0,1,2,3,4,5,6,7,8,9
|
|
one_sym \thou\hund\tens\ones
|
|
.endr
|
|
.endr
|
|
.endr
|
|
.endr
|
|
|
|
tls_bits_1:
|
|
addiu $4,$28,%tlsgd(tlsvar_gd)
|
|
addiu $4,$28,%tlsldm(tlsvar_ld)
|
|
addiu $4,$2,%gottprel(tlsvar_ie)
|
|
|
|
.section .tbss,"awT",@nobits
|
|
.align 2
|
|
.global tlsvar_gd
|
|
.type tlsvar_gd,@object
|
|
.size tlsvar_gd,4
|
|
tlsvar_gd:
|
|
.space 4
|
|
.global tlsvar_ie
|
|
.type tlsvar_ie,@object
|
|
.size tlsvar_ie,4
|
|
tlsvar_ie:
|
|
.space 4
|
|
|
|
.section .tdata,"awT"
|
|
.align 2
|
|
.global tlsvar_ld
|
|
.hidden tlsvar_ld
|
|
.type tlsvar_ld,@object
|
|
.size tlsvar_ld,4
|
|
tlsvar_ld:
|
|
.word 1
|