1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/tools/obj2yaml
David Majnemer 579f5bb06a MC: Add support for BigObj
Teach WinCOFFObjectWriter how to write -mbig-obj style object files;
these object files allow for more sections inside an object file.

Our support for BigObj is notably different from binutils and cl: we
implicitly upgrade object files to BigObj instead of asking the user to
compile the same file *again* but with another flag.  This matches up
with how LLVM treats ELF variants.

This was tested by forcing LLVM to always emit BigObj files and running
the entire test suite.  A specific test has also been added.

I've lowered the maximum number of sections in a normal COFF file,
VS "14" CTP 3 supports no more than 65279 sections.  This is important
otherwise we might not switch to BigObj quickly enough, leaving us with
a COFF file that we couldn't link.

yaml2obj support is all that remains to implement.

Differential Revision: http://reviews.llvm.org/D5349

llvm-svn: 217812
2014-09-15 19:42:42 +00:00
..
CMakeLists.txt Install the obj2yaml and yaml2obj utilities together with other LLVM tools. 2014-07-29 18:28:16 +00:00
coff2yaml.cpp MC: Add support for BigObj 2014-09-15 19:42:42 +00:00
elf2yaml.cpp Invert the MC -> Object dependency. 2014-07-03 02:01:39 +00:00
Error.cpp Added missing LLVM_NOEXCEPT to the definition of _obj2yaml_error_category::name 2014-09-11 17:19:54 +00:00
Error.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
Makefile Install the obj2yaml and yaml2obj utilities together with other LLVM tools. 2014-07-29 18:28:16 +00:00
obj2yaml.cpp Don't own the buffer in object::Binary. 2014-08-19 18:44:46 +00:00
obj2yaml.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00