llvm-project/llvm/test/tools/llvm-objdump
Kevin Enderby 3e95bd2239 Add error handling to the dyld compact export entries in libObject.
lld needs a matching change for this will be my next commit.
Expect it to fail build until that matching commit is picked up by the bots.

Like the changes in r296527 for dyld bind entires and the changes in
r298883 for lazy bind, weak bind and rebase entries the export
entries are the last of the dyld compact info to have error handling added.

This follows the model of iterators that can fail that Lang Hanes
designed when fixing the problem for bad archives r275316 (or r275361).

So that iterating through the exports now terminates if there is an error
and returns an llvm::Error with an error message in all cases for malformed
input.

This change provides the plumbing for the error handling, all the needed
testing of error conditions and test cases for all of the unique error messages.

llvm-svn: 308690
2017-07-20 23:08:41 +00:00
..
AArch64 [llvm-objdump] Properly print MachO aarch64 addend relocations 2017-07-13 17:03:02 +00:00
AMDGPU Fix source-lines test on Windows. 2017-03-07 21:53:21 +00:00
ARM [llvm-objdump] Correctly distinguish between the MachO upper/lower16 relocations 2017-07-13 05:54:08 +00:00
Hexagon [IR] Remove the DIExpression field from DIGlobalVariable. 2016-12-20 02:09:43 +00:00
Inputs Add error handling to the dyld compact export entries in libObject. 2017-07-20 23:08:41 +00:00
Mips [mips] Drop unneeded REQUIRES line in test. NFCI 2017-03-01 14:31:09 +00:00
WebAssembly [WebAssembly] Be consistent in generating trivial test input files 2017-07-10 20:43:26 +00:00
X86 Updated llvm-objdump symbolic disassembly with x86_64 Mach-O MH_KEXT_BUNDLE 2017-06-22 17:41:22 +00:00
coff-file.test
coff-import-library.test
coff-large-bss.test
coff-many-relocs.test
coff-non-null-terminated-file.test
coff-private-headers.test
common-symbol-elf.test
eh_frame-arm64.test
eh_frame-mipsel.test
eh_frame_zero_cie.test
hex-relocation-addr.test
invalid-input.test
macho-LLVM-bundle.test
macho-bad-bind.test [Object] Remove check for BIND_OPCODE_DONE/REBASE_OPCODE_DONE. 2017-03-30 19:56:50 +00:00
macho-bad-ordinal.test Actually add error handling to unpacking the dyld compact bind and 2017-02-28 21:47:07 +00:00
macho-bad-trie.test Add error handling to the dyld compact export entries in libObject. 2017-07-20 23:08:41 +00:00
macho-bind.test
macho-bind2.test
macho-compact-unwind-i386.test
macho-compact-unwind-x86_64.test
macho-exports-trie.test Fix a FIXME in llvm-objdump for the -exports-trie option that was not adding 2017-06-19 21:23:07 +00:00
macho-lazy-bind.test
macho-objc-meta-data.test
macho-rebase.test
macho-sections.test
macho-unwind-info-arm64.test
macho-unwind-info-no-relocs.test
macho-unwind-info-x86_64.test
macho-weak-bind.test
malformed-archives.test
malformed-macho.test Change the llvm-obdump(1) behavior with the -macho flag and inappropriate file types. 2017-01-30 20:53:17 +00:00
malformed-unwind-x86_64.test llvm-objdump: deal with unexpected object files more gracefully. 2016-11-15 20:26:01 +00:00
proc-specific-section-elf.test
section-filter.test
wasm.txt [WebAssembly] Be consistent in generating trivial test input files 2017-07-10 20:43:26 +00:00
win64-unwind-data.test