[dwarfdump] Ignore scattered relocations for mach-o.
authorFrederic Riss <friss@apple.com>
Fri, 31 Jul 2015 20:22:50 +0000 (20:22 +0000)
committerFrederic Riss <friss@apple.com>
Fri, 31 Jul 2015 20:22:50 +0000 (20:22 +0000)
commit09e26a42d2ad562eafe4fdb35dd4dd090e726f5d
tree87e2970960b2daea7292b352dd3bed528a5b6f56
parentd353c91d497390c44db1f21c584abb0fbc4064de
[dwarfdump] Ignore scattered relocations for mach-o.

When encountering a scattered relocation, the code would assert trying to
access an unexisting section. I couldn't find a way to expose the result
of the processing of a scattered reloc, and I'm really unsure what the
right thing to do is. This patch just skips them during the processing in
DwarfContext and adds a mach-o file to the tests that exposed the asserting
behavior.
(This is a new failure that is being exposed by Rafael's recent work on
the libObject interfaces. I think the wrong behavior has always happened,
but now it's asserting)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243778 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/DWARF/DWARFContext.cpp
test/DebugInfo/Inputs/dwarfdump-test.cc
test/DebugInfo/Inputs/dwarfdump-test.macho-i386.o [new file with mode: 0644]
test/DebugInfo/dwarfdump-dump-flags.test