llvm-6502/lib
David Majnemer 5b1b9844e7 Object, COFF: Cap the section contents to min(VirtualSize, SizeOfRawData)
It is not useful to return the data beyond VirtualSize it's less than
SizeOfRawData.

An implementation detail of COFF requires the section size to be rounded
up to a multiple of FileAlignment; this means that SizeOfRawData is not
representative of how large the section is.  Instead, we should cap it
to VirtualSize when this occurs as it represents the true size of the
section.

Note that this is only relevant in executable files because this
rounding doesn't occur in object files (and VirtualSize is always zero).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219388 91177308-0d34-0410-b5e6-96231b3b80d8
2014-10-09 07:49:28 +00:00
..
Analysis [BasicAA] Revert "Revert r218714 - Make better use of zext and sign information." 2014-10-06 18:37:59 +00:00
AsmParser Make CallingConv::ID an alias of "unsigned". 2014-09-10 18:00:17 +00:00
Bitcode Do not destroy external linkage when deleting function body 2014-09-23 12:54:19 +00:00
CodeGen Remove more calls to getSubtargetImpl from the schedulers and 2014-10-09 06:28:06 +00:00
DebugInfo Remove bogus std::error_code returns form SectionRef. 2014-10-08 15:28:58 +00:00
ExecutionEngine Remove bogus std::error_code returns form SectionRef. 2014-10-08 15:28:58 +00:00
IR DebugInfo: Ensure that all debug location scope chains from instructions within a function, lead to the function itself. 2014-10-07 16:56:20 +00:00
IRReader Pass a && to getLazyBitcodeModule. 2014-09-03 17:31:46 +00:00
LineEditor
Linker Merge alignment of common GlobalValue. 2014-09-09 17:48:18 +00:00
LTO LTO: Document the Boolean argument from r218784 2014-10-02 21:11:04 +00:00
MC Fix COFF section index relocation should be 16 bits, not 32 2014-10-08 18:01:49 +00:00
Object Object, COFF: Cap the section contents to min(VirtualSize, SizeOfRawData) 2014-10-09 07:49:28 +00:00
Option Add an overload of getLastArgNoClaim taking two OptSpecifiers. 2014-09-12 19:42:53 +00:00
ProfileData Remove bogus std::error_code returns form SectionRef. 2014-10-08 15:28:58 +00:00
Support Revert r219354. It seems to break some buildbots. 2014-10-08 23:07:59 +00:00
TableGen Eliminate some deep std::vector copies. NFC. 2014-10-03 18:33:16 +00:00
Target Use triple's isiOS() and isOSDarwin() methods. 2014-10-09 05:43:30 +00:00
Transforms Use triple's isiOS() and isOSDarwin() methods. 2014-10-09 05:43:30 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile