llvm-project/llvm/test/tools/llvm-objdump/X86
Kevin Enderby a8d256cb36 Add the rest of the error checking for Mach-O dyld compact bind entry errors
and test cases for each of the error checks.

To do this more plumbing was needed so that the segment indexes and
segment offsets can be checked.  Basically what was done was the SegInfo
from llvm-objdump’s MachODump.cpp was moved into libObject for Mach-O
objects as BindRebaseSegInfo and it is only created when an iterator for
bind or rebase entries are created.

This commit really only adds the error checking and test cases for the
bind table entires and the checking for the lazy bind and weak bind entries
are still to be fully done as well as the rebase entires.  Though some of
the plumbing for those are added with this commit.  Those other error
checks and test cases will be added in follow on commits.

Note, the two llvm_unreachable() calls should now actually be unreachable
with the error checks in place and would take a logic bug in the error
checking code to be reached if the segment indexes and segment
offsets are used from a checked bind entry.  Comments have been added
to the methods that require the arguments to have been checked
prior to calling.

llvm-svn: 298292
2017-03-20 19:46:55 +00:00
..
Inputs Tweak the implementation of llvm-objdump’s -objc-meta-data option so 2017-02-09 17:56:26 +00:00
coff-dis-internal.test
coff-disassemble-export.test
disassemble-code-data-mix.s llvm-objdump: ELF: Handle code and data mix in all scenarios 2016-08-25 19:41:08 +00:00
disassemble-data.test
disassembly-show-raw.test
hex-displacement.test
invalid-macho-build-version.yaml Add LC_BUILD_VERSION load command 2017-01-23 20:07:55 +00:00
lit.local.cfg
macho-archive-headers.test
macho-build-version.yaml Add LC_BUILD_VERSION load command 2017-01-23 20:07:55 +00:00
macho-cstring-dump.test
macho-dis-no-leading-addr.test
macho-dis-symname.test
macho-disassembly-stripped.test
macho-dylib.test Add to llvm-objdump the -no-leading-headers option with the use of the -macho option. 2016-11-29 21:43:40 +00:00
macho-indirect-symbols.test
macho-info-plist-nofollow.test Fix a bug in llvm-obdump(1) with the -macho and -info-plist options 2017-02-06 21:01:08 +00:00
macho-info-plist.test
macho-literal-pointers-i386.test
macho-literal-pointers-x86_64.test
macho-literals.test
macho-nofirst-symbol-disassembly.test Fix a bug in llvm-obdump(1) with the -macho and -disassemble options 2017-02-06 18:43:18 +00:00
macho-nontext-disasm.test
macho-objc-meta-data.test Tweak the implementation of llvm-objdump’s -objc-meta-data option so 2017-02-09 17:56:26 +00:00
macho-print-thread.test Add support for the x86_thread_state32_t and 2017-01-23 21:13:29 +00:00
macho-private-header.test
macho-private-headers.test Add support for the new LC_NOTE load command. 2017-01-19 17:36:31 +00:00
macho-relocations.test
macho-section-contents.test
macho-section-headers.test
macho-section.test
macho-stub-nosyms-disassembly.test Fix a bug in llvm-obdump(1) with the -macho flag disassembling an object 2017-01-31 18:09:10 +00:00
macho-symbol-table.test
macho-symbolized-disassembly.test Add an c++ itanium demangler to llvm. 2016-09-06 19:16:48 +00:00
macho-symbolized-subtractor-i386.test
macho-symbolized-subtractor.test
macho-universal-x86_64.i386.test Update llvm-obdump(1) to print FAT_MAGIC_64 for Darwin’s 64-bit universal files 2016-06-21 21:55:01 +00:00
macho-unwind-info.test
malformed-machos.test Add the rest of the error checking for Mach-O dyld compact bind entry errors 2017-03-20 19:46:55 +00:00
openbsd-headers.test [llvm-objdump tests] Copy the inputs of tests closer to tests. 2017-01-17 14:22:29 +00:00
out-of-section-sym.test
phdrs.test [llvm-objdump tests] Copy the inputs of tests closer to tests. 2017-01-17 14:22:29 +00:00
source-interleave-x86_64.ll [IR] Remove the DIExpression field from DIGlobalVariable. 2016-12-20 02:09:43 +00:00
start-stop-address.test Fix test failure in r281232 2016-09-12 17:40:10 +00:00
stripped-shared.test Move test from r294430 to target-specific directory 2017-02-08 13:48:08 +00:00
stubbed-dylib.test llvm-objdump: handle stubbed and malformed dylibs better 2016-07-14 22:13:32 +00:00
truncated-section.test llvm-objdump: handle stubbed and malformed dylibs better 2016-07-14 22:13:32 +00:00