diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-10-28 15:02:40 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-10-28 15:02:40 +0000 |
commit | b4d1721eff7b43577e5f2e53f885973fb6c43683 (patch) | |
tree | ff61252d1d9671dea723f79a182418e5ae6f84bf /test | |
parent | 0cf15d61b7e3bf53f5a99f58ada37b93bc039559 (diff) | |
download | external_llvm-b4d1721eff7b43577e5f2e53f885973fb6c43683.zip external_llvm-b4d1721eff7b43577e5f2e53f885973fb6c43683.tar.gz external_llvm-b4d1721eff7b43577e5f2e53f885973fb6c43683.tar.bz2 |
Implement TLSLD.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117547 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/ELF/relocation.s | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/MC/ELF/relocation.s b/test/MC/ELF/relocation.s index 128fbfa..546d89c 100644 --- a/test/MC/ELF/relocation.s +++ b/test/MC/ELF/relocation.s @@ -12,6 +12,7 @@ bar: leaq foo@GOTTPOFF(%rip), %rax # R_X86_64_GOTTPOFF leaq foo@TLSGD(%rip), %rax # R_X86_64_TLSGD leaq foo@TPOFF(%rax), %rax # R_X86_64_TPOFF32 + leaq foo@TLSLD(%rip), %rdi # R_X86_64_TLSLD // CHECK: # Section 0x00000001 // CHECK: (('sh_name', 0x00000001) # '.text' @@ -76,3 +77,9 @@ bar: // CHECK-NEXT: ('r_sym', 0x00000006) // CHECK-NEXT: ('r_type', 0x00000017) // CHECK-NEXT: ('r_addend', 0x00000000) + +// CHECK: # Relocation 0x00000009 +// CHECK-NEXT: (('r_offset', 0x00000042) +// CHECK-NEXT: ('r_sym', 0x00000006) +// CHECK-NEXT: ('r_type', 0x00000014) +// CHECK-NEXT: ('r_addend', 0xfffffffc) |