summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/WinCOFFObjectWriter.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-12-17 01:14:52 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-12-17 01:14:52 +0000
commitd3df3d352747f09683c8b9b251e0a40f6ad878e9 (patch)
treea0c354ef3095541349f8ded36b0fc803bfd04be1 /llvm/lib/MC/WinCOFFObjectWriter.cpp
parentda07b3ad420ef31b50a3c3621c9445a2c15fef45 (diff)
downloadbcm5719-llvm-d3df3d352747f09683c8b9b251e0a40f6ad878e9.tar.gz
bcm5719-llvm-d3df3d352747f09683c8b9b251e0a40f6ad878e9.zip
Add back the MC bits of 126425. Original patch by Nathan Jeffords. I added the
asm parsing and testcase. llvm-svn: 146801
Diffstat (limited to 'llvm/lib/MC/WinCOFFObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/WinCOFFObjectWriter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/MC/WinCOFFObjectWriter.cpp b/llvm/lib/MC/WinCOFFObjectWriter.cpp
index 4052374c963..484443a69aa 100644
--- a/llvm/lib/MC/WinCOFFObjectWriter.cpp
+++ b/llvm/lib/MC/WinCOFFObjectWriter.cpp
@@ -716,6 +716,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");
}
OpenPOWER on IntegriCloud