aboutsummaryrefslogtreecommitdiff
path: root/lib/MC/WinCOFFObjectWriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MC/WinCOFFObjectWriter.cpp')
-rw-r--r--lib/MC/WinCOFFObjectWriter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/MC/WinCOFFObjectWriter.cpp b/lib/MC/WinCOFFObjectWriter.cpp
index 6ca5d37fc3..dca4cdd6e7 100644
--- a/lib/MC/WinCOFFObjectWriter.cpp
+++ b/lib/MC/WinCOFFObjectWriter.cpp
@@ -705,6 +705,10 @@ void WinCOFFObjectWriter::RecordRelocation(const MCAssembler &Asm,
else
llvm_unreachable("unsupported relocation type");
break;
+ case X86::reloc_coff_secrel32:
+ Reloc.Data.Type = Is64Bit ? COFF::IMAGE_REL_AMD64_SREL32
+ : COFF::IMAGE_REL_I386_SECREL;
+ break;
default:
llvm_unreachable("unsupported relocation type");
}