aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ELF
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2013-09-22 05:30:16 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2013-09-22 05:30:16 +0000
commit7d7db75a55319f1d21f0d8336744f90a81b87ac7 (patch)
tree6c0d396fd179febdf71ae5d9dc5154332f1ef771 /test/MC/ELF
parentecd4965c133d16fc9e5a6ac393c5194b67cd53ab (diff)
downloadexternal_llvm-7d7db75a55319f1d21f0d8336744f90a81b87ac7.zip
external_llvm-7d7db75a55319f1d21f0d8336744f90a81b87ac7.tar.gz
external_llvm-7d7db75a55319f1d21f0d8336744f90a81b87ac7.tar.bz2
X86: Use R_X86_64_TPOFF64 for FK_Data_8
Summary: LLVM would crash when trying to come up with a relocation type for assembly like: movabsq $V@TPOFF, %rax Instead, we say the relocation type is R_X86_64_TPOFF64. Fixes PR17274. Reviewers: dblaikie, nrieck, rafael CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1717 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191163 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ELF')
-rw-r--r--test/MC/ELF/relocation.s2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/MC/ELF/relocation.s b/test/MC/ELF/relocation.s
index d2c4f2e..ba50c81 100644
--- a/test/MC/ELF/relocation.s
+++ b/test/MC/ELF/relocation.s
@@ -19,6 +19,7 @@ bar:
leaq foo-bar(%r14),%r14
addq $bar,%rax # R_X86_64_32S
.quad foo@DTPOFF
+ movabsq $baz@TPOFF, %rax
// CHECK: Section {
// CHECK: Name: .rela.text
@@ -39,6 +40,7 @@ bar:
// CHECK-NEXT: 0x5C R_X86_64_PC32 foo 0x5C
// CHECK-NEXT: 0x63 R_X86_64_32S .text 0x0
// CHECK-NEXT: 0x67 R_X86_64_DTPOFF64 foo 0x0
+// CHECK-NEXT: 0x71 R_X86_64_TPOFF64 baz 0x0
// CHECK-NEXT: ]
// CHECK-NEXT: }