llvm/test
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
..
Analysis [SCEV] Compute affine range in another way to avoid bitwidth extending. 2017-03-16 21:07:38 +00:00
Assembler
Bindings
Bitcode [Bitcode] Add compatibility test for the 4.0 release 2017-03-17 17:53:26 +00:00
BugPoint
CodeGen [Hexagon] Recognize polynomial-modulo loop idiom again 2017-03-20 18:12:58 +00:00
DebugInfo Enable stripping of multiple DILocation on !llvm.loop metadata 2017-03-19 13:54:57 +00:00
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation Revert r298158. 2017-03-20 18:45:34 +00:00
Integer
JitListener
LibDriver
Linker [Linker] Provide callback for internalization 2017-03-13 18:08:11 +00:00
LTO
MC [AMDGPU][MC] Fix for Bugs 28201, 28199, 28170 + LIT tests 2017-03-20 16:33:20 +00:00
Object Archives require a symbol table on Solaris, even if empty. 2017-03-14 19:57:13 +00:00
ObjectYAML
Other Bring back r297624. 2017-03-13 20:00:25 +00:00
SymbolRewriter
TableGen [tablegen][globalisel] Capture instructions into locals and related infrastructure for multiple instructions matches. 2017-03-20 15:20:42 +00:00
ThinLTO/X86 Support, LTO: When pruning a directory, ignore files matching a prefix. 2017-03-20 16:41:57 +00:00
tools Add the rest of the error checking for Mach-O dyld compact bind entry errors 2017-03-20 19:46:55 +00:00
Transforms Add missing updated test from VN coercion changes. Instructions were renamed. NFC 2017-03-20 18:04:19 +00:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg
lit.site.cfg.in
TestRunner.sh