Home

Add WoA object file emission support

Press ? to show keyboard shortcuts.
Auditors
grosbach
H23 MC code reviews Triggered Audit
Committed
compnerdApr 26 2014, 8:48 PM
Parents
rL207344: MC: create X86WinCOFFStreamer for target specific behaviour
Branches
Unknown
Tags
Unknown
Subscribers
None
Projects
None
Description

Add WoA object file emission support

Introduce support for WoA PE/COFF object file emission from LLVM. Add the new
target specific PE/COFF Streamer (ARMWinCOFFStreamer) that handles the ARM
specific behaviour of PE/COFF object emission. ARM exception information is not
yet emitted and is a TODO item.

The ARM specific object writer (ARMWinCOFFObjectWriter) handles the ARM specific
relocation handling in conjunction with the WinCOFFObjectWriter in the MC layer.
The MC layer needs to be updated to deal with the relocation adjustments.
Branch relocations are adjusted by 4 bytes (unlikely their ELF counterparts).

Minor tweaks to switch multiple conditional checks into equivalent switch
statements. The ObjectFileInfo is updated to relax the object file setup for
Windows COFF. Move the architecture checks into an assertion. Windows COFF is
currently only supported on x86, x86_64, and ARM (thumb). Rather than
defaulting to ELF, we will refuse to generate an object file. This is better
though as you do not get an (arbitrary) object file which is different from the
request.

rL207345

llvm/trunk/lib/MC/MCObjectFileInfo.cpp

Loading...

llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp

Loading...

llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp

Loading...

llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp

Loading...

llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp

Loading...

llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.h

Loading...

llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMWinCOFFObjectWriter.cpp

Loading...

llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMWinCOFFStreamer.cpp

Loading...

llvm/trunk/lib/Target/ARM/MCTargetDesc/CMakeLists.txt

Loading...

llvm/trunk/test/MC/COFF/arm-relocations.s

Loading...

Add Comment