summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86ELFWriterInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/X86/X86ELFWriterInfo.cpp')
-rw-r--r--llvm/lib/Target/X86/X86ELFWriterInfo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ELFWriterInfo.cpp b/llvm/lib/Target/X86/X86ELFWriterInfo.cpp
index 618cc5b82b4..096c00ee305 100644
--- a/llvm/lib/Target/X86/X86ELFWriterInfo.cpp
+++ b/llvm/lib/Target/X86/X86ELFWriterInfo.cpp
@@ -64,7 +64,9 @@ long int X86ELFWriterInfo::getDefaultAddendForRelTy(unsigned RelTy) const {
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");
}
OpenPOWER on IntegriCloud