llvm/test/tools
Kevin Enderby 1ae32f1960 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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298292 91177308-0d34-0410-b5e6-96231b3b80d8
2017-03-20 19:46:55 +00:00
..
dsymutil [dsymutil] Fix handling of empty CUs in LTO links. 2017-02-09 19:41:55 +00:00
gold LTO: When creating a local cache, create the cache directory if it does not already exist. 2017-03-02 02:02:38 +00:00
llvm-ar test: relax the match on the timestamp 2016-07-05 01:14:53 +00:00
llvm-config [llvm-config] Add minimal sanity tests for path options 2017-03-15 05:57:29 +00:00
llvm-cov [llvm-cov] Error-out when an unsupported format is used (PR32087) 2017-02-28 16:57:28 +00:00
llvm-cxxdump Fix a bug in the code of llvm-cxxdump in dumpArchive() when 2016-10-21 20:03:14 +00:00
llvm-cxxfilt llvm-cxxfilt: support -_ 2017-01-22 17:41:10 +00:00
llvm-dwp [llvm-dwp] - Reuse object::Decompressor class 2017-01-13 15:58:55 +00:00
llvm-lit [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
llvm-lto [LTO] Reject modules without datalayout. 2016-12-14 21:57:04 +00:00
llvm-lto2 Fix test and add missing return for llvm-lto2 error case 2017-03-07 18:15:13 +00:00
llvm-mc [Hexagon] Removing XFAIL on Hexagon target. 2015-11-09 06:15:55 +00:00
llvm-modextract llvm-modextract: Call keep() on the output stream before exiting. 2016-12-01 23:13:11 +00:00
llvm-nm Change the test added in r293099 so it does not have the string "llvm-nm" to fix 2017-01-25 23:57:32 +00:00
llvm-objdump Add the rest of the error checking for Mach-O dyld compact bind entry errors 2017-03-20 19:46:55 +00:00
llvm-opt-report [llvm-opt-report] Fix context-sensitive lines where nothing happened 2017-01-07 20:21:17 +00:00
llvm-pdbdump Update llvm-pdbdump to use subcommands. 2016-06-30 17:42:48 +00:00
llvm-profdata [PGO] Add omitted test cases. 2017-03-17 20:05:13 +00:00
llvm-readobj [WebAssembly] Update llvm-readobj tests for switch to version 0x1 2017-02-22 21:01:17 +00:00
llvm-size Fix a bug with llvm-size and the -m option with multiple files not printing the file names. 2016-12-01 19:12:55 +00:00
llvm-split Preserve blockaddress use edges in the module splitter. 2016-03-31 21:55:11 +00:00
llvm-strings llvm-strings: add support for -t 2017-01-21 02:36:28 +00:00
llvm-symbolizer Get function start line number from DWARF info 2017-02-06 20:19:02 +00:00
llvm-xray/X86 [XRAY] A Color Choosing helper for XRay Graph 2017-02-25 00:26:42 +00:00
lto Fix test/tools/lto/hide-linkonce-odr.ll after r289719 2016-12-15 01:31:38 +00:00
sancov [sancov] better input parameters validation 2017-03-03 18:22:20 +00:00
sanstats Use printf instead of "echo -e" or "echo -n". 2016-10-26 01:07:26 +00:00
yaml2obj [yaml2obj] Remove --format option in favor of YAML tags 2016-06-27 19:53:53 +00:00