aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/tlsgd2.s
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-06-19 16:00:33 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-06-19 16:00:33 +0000
commit4c5448074d6fce6d6c0bbaba75c4bba3f16db786 (patch)
treed4dd76714916a90e0c21847de3524735e0a56463 /ld/testsuite/ld-i386/tlsgd2.s
parent5d2c29b8d19dc84f75bfa2ce0e2f334f17b5b2e7 (diff)
downloadgdb-4c5448074d6fce6d6c0bbaba75c4bba3f16db786.zip
gdb-4c5448074d6fce6d6c0bbaba75c4bba3f16db786.tar.gz
gdb-4c5448074d6fce6d6c0bbaba75c4bba3f16db786.tar.bz2
bfd/
2009-06-19 H.J. Lu <hongjiu.lu@intel.com> * elf32-i386.c (elf_i386_tls_transition): Add a parameter, r_symndx. Report local symbol name on error. (elf_i386_check_relocs): Updated. Report local symbol name on error. (elf_i386_gc_sweep_hook): Updated. (elf_i386_relocate_section): Likewise. * elf64-x86-64.c (elf64_x86_64_tls_transition): Add a parameter, r_symndx. Report local symbol name on error. (elf64_x86_64_check_relocs): Updated. Report local symbol name on error. (elf64_x86_64_gc_sweep_hook): Updated. (elf64_x86_64_relocate_section): Likewise. ld/testsuite/ 2009-06-19 H.J. Lu <hongjiu.lu@intel.com> * ld-i386/i386.exp: Run tlsgd2. * ld-i386/tlsgd2.d: New. * ld-i386/tlsgd2.s: Likewise. * ld-x86-64/tlsgd3.d: Updated.
Diffstat (limited to 'ld/testsuite/ld-i386/tlsgd2.s')
-rw-r--r--ld/testsuite/ld-i386/tlsgd2.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/testsuite/ld-i386/tlsgd2.s b/ld/testsuite/ld-i386/tlsgd2.s
new file mode 100644
index 0000000..29d9339
--- /dev/null
+++ b/ld/testsuite/ld-i386/tlsgd2.s
@@ -0,0 +1,11 @@
+ .text
+ .globl _start
+_start:
+ leal foo@TLSGD(%ebx), %eax
+ call ___tls_get_addr
+ .section .tdata,"awT",@progbits
+ .align 4
+ .type foo, @object
+ .size foo, 4
+foo:
+ .long 100