mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
3348747a87
* elf32-arm.c (elf32_arm_final_link_relocate): Skip dynamic relocs in vxworks tls_vars sections. (allocate_dynrelocs, elf32_arm_size_dynamic_sections): Likewise. * elf32-i386.c (allocate_dynrelocs, elf_i386_size_dynamic_sections, elf_i386_relocate_section): Likewise. * elf32-ppc.c (allocate_dynrelocs, ppc_elf_size_dynamic_sections, ppc_elf_relocate_section): Likewise. * elf32-sh.c (allocate_dynrelocs, sh_elf_size_dynamic_sections, sh_elf_relocate_section): Likewise. * elfxx-sparc.c (allocate_dynrelocs, _bfd_sparc_elf_size_dynamic_sections, _bfd_sparc_elf_relocate_section): Likewise. ld/testsuite/ * ld-vxworks/tls-3.s: New. * ld-vxworks/tls-3.d: New.
35 lines
374 B
ArmAsm
35 lines
374 B
ArmAsm
.globl foo
|
|
foo:
|
|
|
|
.section .tls_data,"a"
|
|
.p2align 2
|
|
|
|
.type i,%object
|
|
.size i,4
|
|
i:
|
|
.space 4
|
|
|
|
.globl j
|
|
.type j,%object
|
|
.size j,4
|
|
j:
|
|
.space 4
|
|
|
|
.section .tls_vars,"a"
|
|
.p2align 2
|
|
.type __tls__i,%object
|
|
.size __tls__i,12
|
|
__tls__i:
|
|
.4byte i
|
|
.4byte 0
|
|
.4byte 4
|
|
|
|
.globl __tls__j
|
|
.type __tls__j,%object
|
|
.size __tls__j,12
|
|
__tls__j:
|
|
.4byte j
|
|
.4byte 0
|
|
.4byte 4
|
|
|