llvm-project/llvm/test/tools/llvm-objdump/Inputs
Kevin Enderby a59824a174 Fix two bugs in llvm-objdump’s printing of Objective-C meta data
from malformed Mach-O files that caused crashes.

We recently got about 700 malformed Mach-O files which we have
been using the improve the robustness of tools that deal with reading
data from object files.  These resulted in about 20 small bug fixes to
the darwin based tools.

The goal here is to also improve the robustness of llvm-objdump and
this is the first two fixes.  In talking with Tim Northover the approach
we thought might be best is to:

1) Only include tests for the malformed Mach-O files that cause crashes
(not all 700+ tests).
2) The test should only contain the command line option that caused the
crash and not all the others that don’t matter.
3) There should be only one line for the FileCheck that is past the point
of the crash if possible and if possible indicates the malformation.

Again the goal is to fix crashes and not so much care about how the
printing of malformed data comes out.

Tim also suggested if we really wanted to add test cases for all 700+
malformed Mach-O files putting them in the regression tests might be
an option.  But many of these do not cause crashes.

llvm-svn: 249479
2015-10-06 22:27:08 +00:00
..
malformed-machos Fix two bugs in llvm-objdump’s printing of Objective-C meta data 2015-10-06 22:27:08 +00:00
bad-ordinal.macho-x86_64 [llvm-objdump] Update error message and add test case for mach-o file with bad library ordinals 2014-10-14 23:29:38 +00:00
bind.macho-x86_64 [llvm-objdump] for mach-o add -bind, -lazy-bind, and -weak-bind options 2014-09-16 01:41:51 +00:00
bind2.macho-x86_64 [llvm-objdump] Fix mach-o binding decompression error 2014-10-18 01:21:02 +00:00
common-symbol-elf [Objdump] Output information about common symbols in a way closer to GNU objdump. 2015-01-23 20:06:24 +00:00
compact-unwind.macho-i386
compact-unwind.macho-x86_64
export.dll.coff-i386
exports-trie.macho-x86_64 Object/llvm-objdump: allow dumping of mach-o exports trie 2014-08-30 00:20:14 +00:00
file-aux-record.yaml
file.obj.coff-arm
large-bss.obj.coff-i386
lazy-bind.macho-x86_64 [llvm-objdump] for mach-o add -bind, -lazy-bind, and -weak-bind options 2014-09-16 01:41:51 +00:00
many-relocs.obj-i386
nop.exe.coff-i386
out-of-section-sym.s
proc-specific-section-elf [Objdump] Fixing crash when printing symbols in ELF sections with special types. 2015-02-18 23:00:22 +00:00
rebase.macho-x86_64 [llvm-objdump] support -rebase option for mach-o to dump rebasing info 2014-09-12 21:34:15 +00:00
section-filter.obj [llvm-objdump] Added -j flag to filter sections that are operated on. 2015-07-29 15:45:39 +00:00
unwind-info-no-relocs.macho-x86_64 llvm-objdump: don't crash when __compact_unwind has no relocs. 2014-09-09 10:45:06 +00:00
unwind-info.macho-arm64 llvm-objdump: print contents of MachO __unwind_info sections 2014-08-12 11:52:59 +00:00
unwind-info.macho-x86_64 llvm-objdump: print contents of MachO __unwind_info sections 2014-08-12 11:52:59 +00:00
weak-bind.macho-x86_64 [llvm-objdump] for mach-o add -bind, -lazy-bind, and -weak-bind options 2014-09-16 01:41:51 +00:00
win64-unwind.exe.coff-x86_64.asm
win64-unwind.exe.coff-x86_64.exe
win64-unwind.exe.coff-x86_64.obj