summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/tlsie4.s
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2011-03-03 22:11:30 +0000
committerH.J. Lu <hjl.tools@gmail.com>2011-03-03 22:11:30 +0000
commit4b336726739e2383c985545087ebd794168c3f2e (patch)
treeb2d2d0ca257056842c19aecf2879ff3ca7b363d4 /ld/testsuite/ld-x86-64/tlsie4.s
parentda767db46220148636928c8ef6c9b0621b21e86a (diff)
downloadbinutils-redhat-4b336726739e2383c985545087ebd794168c3f2e.tar.gz
Supprt TLS x32 IE->LE transition.
bfd/ 2011-03-03 H.J. Lu <hongjiu.lu@intel.com> * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS x32 IE->LE transition. (elf_x86_64_relocate_section): Likewise. ld/testsuite/ 2011-03-03 H.J. Lu <hongjiu.lu@intel.com> * ld-x86-64/tlsie4.dd: New. * ld-x86-64/tlsie4.s: Likewise. * ld-x86-64/x86-64.exp (x86_64tests): Add tlsie4.
Diffstat (limited to 'ld/testsuite/ld-x86-64/tlsie4.s')
-rw-r--r--ld/testsuite/ld-x86-64/tlsie4.s16
1 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/tlsie4.s b/ld/testsuite/ld-x86-64/tlsie4.s
new file mode 100644
index 0000000000..ca63546467
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/tlsie4.s
@@ -0,0 +1,16 @@
+ .text
+ .globl _start
+_start:
+ mov foo@GOTTPOFF(%rip), %eax
+ add foo@GOTTPOFF(%rip), %eax
+ mov foo@GOTTPOFF(%rip), %r8d
+ add foo@GOTTPOFF(%rip), %r8d
+ mov foo@GOTTPOFF(%rip), %r12d
+ add foo@GOTTPOFF(%rip), %r12d
+ .globl foo
+ .section .tdata,"awT",@progbits
+ .align 4
+ .type foo, @object
+ .size foo, 4
+foo:
+ .long 100