From a3fadc9a17972a899c807f1ed3c8044066a68857 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 14 Aug 2007 19:48:21 +0000 Subject: bfd/ 2007-08-14 H.J. Lu PR ld/4918 * elf32-i386.c (elf_i386_relocate_section): Allow R_386_PC32 on ___tls_get_addr for GD->LE/LD->LE transitions when not building shared library. * elf64-x86-64.c (elf64_x86_64_relocate_section): Allow R_X86_64_PC32 on __tls_get_addr for GD->LE/LD->LE transitions when not building shared library. ld/testsuite/ 2007-08-14 H.J. Lu PR ld/4918 * ld-i386/i386.exp (i386tests): Add tlsgd1 and tlsld1 tests. * ld-x86-64/x86-64.exp (x86_64tests): Likewise. * ld-i386/tlsgd1.dd: New file. * ld-i386/tlsgd1.s: Likewise. * ld-i386/tlsld1.dd: Likewise. * ld-i386/tlsld1.s: Likewise. * ld-x86-64/tlsgd1.dd: Likewise. * ld-x86-64/tlsgd1.s: Likewise. * ld-x86-64/tlsld1.dd: Likewise. * ld-x86-64/tlsld1.s: Likewise. --- ld/testsuite/ld-x86-64/tlsgd1.s | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ld/testsuite/ld-x86-64/tlsgd1.s (limited to 'ld/testsuite/ld-x86-64/tlsgd1.s') diff --git a/ld/testsuite/ld-x86-64/tlsgd1.s b/ld/testsuite/ld-x86-64/tlsgd1.s new file mode 100644 index 0000000..e5f52ed --- /dev/null +++ b/ld/testsuite/ld-x86-64/tlsgd1.s @@ -0,0 +1,15 @@ + .text + .globl _start +_start: + .byte 0x66 + leaq foo@TLSGD(%rip), %rdi + .word 0x6666 + rex64 + call __tls_get_addr + .globl foo + .section .tdata,"awT",@progbits + .align 4 + .type foo, @object + .size foo, 4 +foo: + .long 100 -- cgit v1.1