aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86ELFWriterInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/X86/X86ELFWriterInfo.cpp')
-rw-r--r--lib/Target/X86/X86ELFWriterInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ELFWriterInfo.cpp b/lib/Target/X86/X86ELFWriterInfo.cpp
index a26fe8cd9b..2736a81cdd 100644
--- a/lib/Target/X86/X86ELFWriterInfo.cpp
+++ b/lib/Target/X86/X86ELFWriterInfo.cpp
@@ -65,6 +65,8 @@ long int X86ELFWriterInfo::getAddendForRelTy(unsigned RelTy) const {
switch(RelTy) {
case R_X86_64_PC32: return -4;
break;
+ case R_X86_64_32: return 0;
+ break;
default:
llvm_unreachable("unknown x86 relocation type");
}