Support adding relocations for data sections, handling the cases where
global declared symbols are initialized with references from other global
symbols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76540 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/X86/X86ELFWriterInfo.cpp b/lib/Target/X86/X86ELFWriterInfo.cpp
index 618cc5b..096c00e 100644
--- a/lib/Target/X86/X86ELFWriterInfo.cpp
+++ b/lib/Target/X86/X86ELFWriterInfo.cpp
@@ -64,7 +64,9 @@
if (is64Bit) {
switch(RelTy) {
case R_X86_64_PC32: return -4;
- case R_X86_64_32: return 0;
+ case R_X86_64_32:
+ case R_X86_64_64:
+ return 0;
default:
llvm_unreachable("unknown x86_64 relocation type");
}