diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-12-17 01:14:52 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-12-17 01:14:52 +0000 |
| commit | d3df3d352747f09683c8b9b251e0a40f6ad878e9 (patch) | |
| tree | a0c354ef3095541349f8ded36b0fc803bfd04be1 /llvm/lib/MC/WinCOFFObjectWriter.cpp | |
| parent | da07b3ad420ef31b50a3c3621c9445a2c15fef45 (diff) | |
| download | bcm5719-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.cpp | 4 |
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"); } |

