diff options
author | Tom Roeder <tmroeder@google.com> | 2013-10-30 18:47:25 +0000 |
---|---|---|
committer | Tom Roeder <tmroeder@google.com> | 2013-10-30 18:47:25 +0000 |
commit | 4ca9a2a0adf01ae1aaad2c7fa499501b58183991 (patch) | |
tree | 8e7def5375f343b1abd86bbc9cf52616920198af /lib/Target/X86/MCTargetDesc | |
parent | f34c3ca3046378bdb7e49b7366bafca0e0bafb9a (diff) | |
download | external_llvm-4ca9a2a0adf01ae1aaad2c7fa499501b58183991.zip external_llvm-4ca9a2a0adf01ae1aaad2c7fa499501b58183991.tar.gz external_llvm-4ca9a2a0adf01ae1aaad2c7fa499501b58183991.tar.bz2 |
This commit adds some (but not all) of the x86-64 relocations that are not
currently supported in the ELF object writer, along with a simple test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193709 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/MCTargetDesc')
-rw-r--r-- | lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp b/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp index 6a4bdeb..3ddd865 100644 --- a/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp +++ b/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp @@ -108,6 +108,12 @@ unsigned X86ELFObjectWriter::GetRelocType(const MCValue &Target, case MCSymbolRefExpr::VK_None: Type = ELF::R_X86_64_64; break; + case MCSymbolRefExpr::VK_GOT: + Type = ELF::R_X86_64_GOT64; + break; + case MCSymbolRefExpr::VK_GOTOFF: + Type = ELF::R_X86_64_GOTOFF64; + break; case MCSymbolRefExpr::VK_TPOFF: Type = ELF::R_X86_64_TPOFF64; break; |