diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-06-28 04:24:32 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-06-28 04:24:32 +0000 |
commit | c084c0945b0530180e8969f5e2017d02d06db130 (patch) | |
tree | 6c6a3f46c3a7726567a097639fd20a2647484c6a /lib/Target | |
parent | 8e7294f9953a98cfaae7e3bf5a6c852018cbcb83 (diff) | |
download | external_llvm-c084c0945b0530180e8969f5e2017d02d06db130.zip external_llvm-c084c0945b0530180e8969f5e2017d02d06db130.tar.gz external_llvm-c084c0945b0530180e8969f5e2017d02d06db130.tar.bz2 |
Integrate Assembler: Support X86_64_DTPOFF64 relocations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185131 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp b/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp index de80dd8..b400b87 100644 --- a/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp +++ b/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp @@ -101,7 +101,18 @@ unsigned X86ELFObjectWriter::GetRelocType(const MCValue &Target, } else { switch ((unsigned)Fixup.getKind()) { default: llvm_unreachable("invalid fixup kind!"); - case FK_Data_8: Type = ELF::R_X86_64_64; break; + case FK_Data_8: + switch (Modifier) { + default: + llvm_unreachable("Unimplemented"); + case MCSymbolRefExpr::VK_None: + Type = ELF::R_X86_64_64; + break; + case MCSymbolRefExpr::VK_DTPOFF: + Type = ELF::R_X86_64_DTPOFF64; + break; + } + break; case X86::reloc_signed_4byte: switch (Modifier) { default: |