llvm-project/llvm/lib
Kevin Enderby a8e3ab0c56 Produce another specific error message for a malformed Mach-O file when a load
command has a size less than 8 bytes.

I think the existing test case in test/Object/macho-invalid.test for
macho64-invalid-too-small-load-command was trying to test for this but that
test case triggered a different error given how it was constructed.  So I
constructed a new test case that would trigger this specific error.

I also changed the error message to be consistent with the other malformed Mach-O
file error messages.  I also removed object_error::macho_small_load_command from
Object/Error.h as it is not needed and can just use object_error::parse_failed
and let the error message string distinguish the error.

llvm-svn: 268463
2016-05-03 23:13:50 +00:00
..
Analysis PM: Check that loop passes preserve a basic set of analyses 2016-05-03 21:35:08 +00:00
AsmParser IR: Enable debug info type ODR uniquing for forward decls 2016-04-19 18:00:19 +00:00
Bitcode Clean up to avoid compiler warnings for casting away const qualifiers. 2016-04-27 18:35:02 +00:00
CodeGen Add opt-bisect support to additional passes that can be skipped 2016-05-03 22:32:30 +00:00
DebugInfo Remove unused variable. 2016-05-03 22:26:46 +00:00
ExecutionEngine Thread Expected<...> up from libObject’s getType() for symbols to allow llvm-objdump to produce a good error message. 2016-05-02 20:28:12 +00:00
Fuzzer [libFuzzer] enable detect_leaks=1, add proper docs 2016-04-29 18:49:55 +00:00
IR Revert "[SimplifyCFG] Extend TryToSimplifyUncondBranchFromEmptyBlock for empty block including lifetime intrinsics" 2016-05-02 19:43:22 +00:00
IRReader Remove autoconf support 2016-01-26 21:29:08 +00:00
LTO [IPO/GlobalDCE] Port to the new pass manager. 2016-05-03 19:39:15 +00:00
LibDriver LibDriver: Silently do nothing when provided no inputs. 2016-04-13 19:36:04 +00:00
LineEditor Fix Clang-tidy modernize-deprecated-headers warnings in some files; other minor fixes. 2016-03-28 17:40:08 +00:00
Linker Fix recursive -only-needed. 2016-04-21 14:56:33 +00:00
MC [mips] Use MipsMCExpr instead of MCSymbolRefExpr for all relocations. 2016-05-03 13:35:44 +00:00
Object Produce another specific error message for a malformed Mach-O file when a load 2016-05-03 23:13:50 +00:00
ObjectYAML [lanai] Add Lanai backend. 2016-03-28 13:09:54 +00:00
Option Option parser: class for consuming a joined arg in addition to all remaining args 2016-04-15 00:23:30 +00:00
Passes PM: Port LoopRotation to the new loop pass manager 2016-05-03 22:02:31 +00:00
ProfileData [ProfileData] Propagate an error from InstrProfSymtab 2016-05-03 20:01:01 +00:00
Support Move llvm-readobj/StreamWriter to Support. 2016-05-03 00:28:04 +00:00
TableGen [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
Target [X86] Tidied up SDValue's SDNode referencing. NFCI. 2016-05-03 21:44:45 +00:00
Transforms Add opt-bisect support to additional passes that can be skipped 2016-05-03 22:32:30 +00:00
CMakeLists.txt Move ObjectYAML code to a new library. 2016-03-01 19:15:06 +00:00
LLVMBuild.txt Add LLVMBuild for ObjectYAML. 2016-03-01 21:29:33 +00:00