From 7a2b07ff7e6a3f34e8022a1a72c8a8e812c1da7b Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Thu, 8 Nov 2007 13:51:07 +0000 Subject: include/elf/ * vxworks.h: New. bfd/ * elf-vxworks.h (elf_vxworks_add_dynamic_entries): Declare. (elf_vxworks_finish_dynamic_entry): Declare. * elf-vxworks.c: Include elf/vxworks.h. (elf_vxworks_add_dynamic_entries): New. (elf_vxworks_finish_dynamic_entry): New. * Makefile.am (elf-vxworks.lo): Add dependency. * Makefile.in (elf-vxworks.lo): Add dependency. * elf32-i386.c (elf_i386_size_dynamic_sections, elf_i386_finish_dynamic_sections): Call elf_vxworks_add_dynamic_entries and elf_vxworks_finish_dynamic_entry. * elf32-ppc.c (ppc_elf_size_dynamic_sections, ppc_elf_finish_dynamic_sections): Likewise. * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections, sparc_finish_dyn): Likewise. * elf32-sh.c (sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_sections): Likewise. * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections, _bfd_mips_elf_finish_dynamic_sections): Likewise. * elf32-arm.c (elf32_arm_size_dynamic_sections, elf32_arm_finish_dynamic_sections): Likewise. ld/ * ld-vxworks/tls-2.d: New. * ld-vxworks/tls-2.s: New. --- ld/testsuite/ChangeLog | 5 +++++ ld/testsuite/ld-vxworks/tls-2.d | 11 +++++++++++ ld/testsuite/ld-vxworks/tls-2.s | 19 +++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 ld/testsuite/ld-vxworks/tls-2.d create mode 100644 ld/testsuite/ld-vxworks/tls-2.s (limited to 'ld/testsuite') diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 4da2964..0805299 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-11-08 Nathan Sidwell + + * ld-vxworks/tls-2.d: New. + * ld-vxworks/tls-2.s: New. + 2007-11-07 Nathan Sidwell * ld-vxworks/tls-1.d: New. diff --git a/ld/testsuite/ld-vxworks/tls-2.d b/ld/testsuite/ld-vxworks/tls-2.d new file mode 100644 index 0000000..4278355 --- /dev/null +++ b/ld/testsuite/ld-vxworks/tls-2.d @@ -0,0 +1,11 @@ +# source: tls-2.s +# ld: --entry foo -q --force-dynamic +# readelf: -d + +#... + 0x60000010 \(Operating System specific: 60000010\) 0x[0-9a-f]+ + 0x60000011 \(Operating System specific: 60000011\) 0x4 + 0x60000015 \(Operating System specific: 60000015\) 0x4 + 0x60000012 \(Operating System specific: 60000012\) 0x[0-9a-f]+ + 0x60000013 \(Operating System specific: 60000013\) 0xc +#... diff --git a/ld/testsuite/ld-vxworks/tls-2.s b/ld/testsuite/ld-vxworks/tls-2.s new file mode 100644 index 0000000..8fa97ab --- /dev/null +++ b/ld/testsuite/ld-vxworks/tls-2.s @@ -0,0 +1,19 @@ + .globl foo +foo: + + .section .tls_data + .p2align 2 + .type i,%object + .size i,4 +i: + .space 4 + .globl __tls__i + .section .tls_vars + .p2align 2 + .type __tls__i,%object + .size __tls__i,12 +__tls__i: + .4byte i + .4byte 0 + .4byte 4 + -- cgit v1.1