Browse Source
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.gdb_7_3-branch
6 changed files with 80 additions and 8 deletions
@ -0,0 +1,18 @@ |
|||
#source: tlsie4.s |
|||
#as: --x32 |
|||
#ld: -melf32_x86_64 tmpdir/tlsie4 |
|||
#objdump: -drw |
|||
#target: x86_64-*-linux* |
|||
|
|||
.*: +file format .* |
|||
|
|||
Disassembly of section .text: |
|||
|
|||
[a-f0-9]+ <_start>: |
|||
[ ]*[a-f0-9]+: c7 c0 fc ff ff ff mov \$0xfffffffc,%eax |
|||
[ ]*[a-f0-9]+: 8d 80 fc ff ff ff lea -0x4\(%rax\),%eax |
|||
[ ]*[a-f0-9]+: 41 c7 c0 fc ff ff ff mov \$0xfffffffc,%r8d |
|||
[ ]*[a-f0-9]+: 45 8d 80 fc ff ff ff lea -0x4\(%r8\),%r8d |
|||
[ ]*[a-f0-9]+: 41 c7 c4 fc ff ff ff mov \$0xfffffffc,%r12d |
|||
[ ]*[a-f0-9]+: 41 81 c4 fc ff ff ff add \$0xfffffffc,%r12d |
|||
#pass |
|||
@ -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 |
|||
Loading…
Reference in new issue