From 9b769489c6ae11df1294c5a1502daf8c78b00376 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 23 Jul 2009 21:22:20 +0000 Subject: bfd/ 2009-07-23 H.J. Lu PR ld/10434 * elf64-x86-64.c (elf64_x86_64_check_relocs): Check executable instead of shared for R_X86_64_TPOFF32. (elf64_x86_64_relocate_section): Likewise. ld/testsuite/ 2009-07-23 H.J. Lu PR ld/10434 * ld-x86-64/tlsle1.d: New. * ld-x86-64/tlsle1.s: Likewise. * ld-x86-64/x86-64.exp: Run tlsle1. --- ld/testsuite/ld-x86-64/tlsle1.d | 6 ++++++ ld/testsuite/ld-x86-64/tlsle1.s | 11 +++++++++++ ld/testsuite/ld-x86-64/x86-64.exp | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 ld/testsuite/ld-x86-64/tlsle1.d create mode 100644 ld/testsuite/ld-x86-64/tlsle1.s (limited to 'ld/testsuite/ld-x86-64') diff --git a/ld/testsuite/ld-x86-64/tlsle1.d b/ld/testsuite/ld-x86-64/tlsle1.d new file mode 100644 index 0000000..2142ef5 --- /dev/null +++ b/ld/testsuite/ld-x86-64/tlsle1.d @@ -0,0 +1,6 @@ +#name: TLS LE with PIE +#as: --64 +#ld: -melf_x86_64 -pie +#readelf: -r + +There are no relocations in this file. diff --git a/ld/testsuite/ld-x86-64/tlsle1.s b/ld/testsuite/ld-x86-64/tlsle1.s new file mode 100644 index 0000000..4346a5d --- /dev/null +++ b/ld/testsuite/ld-x86-64/tlsle1.s @@ -0,0 +1,11 @@ + .text + .globl _start +_start: + movl $0, %fs:foo@TPOFF + .globl foo + .section .tdata,"awT",@progbits + .align 4 + .type foo, @object + .size foo, 4 +foo: + .long 100 diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp index 0b8e614..cb6c1a6 100644 --- a/ld/testsuite/ld-x86-64/x86-64.exp +++ b/ld/testsuite/ld-x86-64/x86-64.exp @@ -92,4 +92,4 @@ run_dump_test "hidden3" run_dump_test "protected1" run_dump_test "protected2" run_dump_test "protected3" - +run_dump_test "tlsle1" -- cgit v1.1