Enable DebugInfo support for COFF object files.
[oota-llvm.git] / lib / MC / WinCOFFObjectWriter.cpp
index 6ca5d37fc32efcdfa1e1c230d1360cf2fca28cab..dca4cdd6e7a22a1a601918952fd4b74d0f6128e8 100644 (file)
@@ -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");
   }