hanchenye-llvm-project/llvm/tools/llvm-readobj
David Majnemer 4d57159c09 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
..
ARMAttributeParser.cpp
ARMAttributeParser.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
ARMEHABIPrinter.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
ARMWinEHPrinter.cpp Support: Delete {aligned_,}{u,}{little,big}8_t 2014-09-11 21:46:33 +00:00
ARMWinEHPrinter.h Support: Delete {aligned_,}{u,}{little,big}8_t 2014-09-11 21:46:33 +00:00
CMakeLists.txt
COFFDumper.cpp MC: Add support for BigObj 2014-09-15 19:42:42 +00:00
ELFDumper.cpp
Error.cpp
Error.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
LLVMBuild.txt
MachODumper.cpp Remove 'virtual' keyword from methods markedwith 'override' keyword. 2014-08-30 16:48:34 +00:00
Makefile
ObjDumper.cpp
ObjDumper.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
StreamWriter.cpp
StreamWriter.h Simplify creation of a bunch of ArrayRefs by using None, makeArrayRef or just letting them be implicitly created. 2014-08-27 05:25:25 +00:00
Win64EHDumper.cpp
Win64EHDumper.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
llvm-readobj.cpp Don't own the buffer in object::Binary. 2014-08-19 18:44:46 +00:00
llvm-readobj.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00