diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2008-03-25 18:56:02 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2008-03-25 18:56:02 +0000 |
commit | 3348747a874d2c53964a3038be83070542f75c2e (patch) | |
tree | 0c980418f104acc1dc304b811a2a8bf91d835cfb /ld/testsuite | |
parent | 0a65a3a7402d9b8523844366c638a0354f48dfa4 (diff) | |
download | binutils-gdb-3348747a874d2c53964a3038be83070542f75c2e.tar.gz |
bfd/
* 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.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-vxworks/tls-3.d | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-vxworks/tls-3.s | 34 |
3 files changed, 46 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 5a4e27d93a6..2cd6d038222 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-03-25 Nathan Sidwell <nathan@codesourcery.com> + + * ld-vxworks/tls-3.s: New. + * ld-vxworks/tls-3.d: New. + 2008-03-22 Hans-Peter Nilsson <hp@axis.com> * ld-cris/libdso-10.d: Adjust for change in objdump output. diff --git a/ld/testsuite/ld-vxworks/tls-3.d b/ld/testsuite/ld-vxworks/tls-3.d new file mode 100644 index 00000000000..53f7e8174c1 --- /dev/null +++ b/ld/testsuite/ld-vxworks/tls-3.d @@ -0,0 +1,7 @@ +# source: tls-3.s +# ld: -shared -z now +# objdump: -R + +#... +DYNAMIC RELOCATION RECORDS \(none\) + diff --git a/ld/testsuite/ld-vxworks/tls-3.s b/ld/testsuite/ld-vxworks/tls-3.s new file mode 100644 index 00000000000..39420c2c8d1 --- /dev/null +++ b/ld/testsuite/ld-vxworks/tls-3.s @@ -0,0 +1,34 @@ + .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 + |