1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/include/llvm/Object
Kevin Enderby c54e7df6bf 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
..
Archive.h Don't modify archive members unless really needed. 2017-02-21 20:40:54 +00:00
ArchiveWriter.h Only computeRelativePath() on new members 2016-11-30 22:32:58 +00:00
Binary.h [WebAssembly] Add llvm-objdump support for wasm file format 2016-11-30 16:49:11 +00:00
COFF.h Object: Make SymbolicFile::symbol_{begin,end}() virtual and remove unnecessary wrappers. 2016-11-22 03:38:40 +00:00
COFFImportFile.h Object: Make SymbolicFile::symbol_{begin,end}() virtual and remove unnecessary wrappers. 2016-11-22 03:38:40 +00:00
Decompressor.h Wdocumentation fix 2017-01-12 11:21:56 +00:00
ELF.h [ELF] Convert ELF.h to Expected<T>. 2016-11-16 05:10:28 +00:00
ELFObjectFile.h Object: Handle files without a dynamic symbol table. 2017-02-03 16:53:55 +00:00
ELFTypes.h Fix comment typos. NFC. 2016-11-20 13:47:59 +00:00
Error.h [Object/ELF] - Make getSymbol() return Error. 2016-11-03 08:40:55 +00:00
IRObjectFile.h Object: Make IRObjectFile own multiple modules and enumerate symbols from all modules. 2016-12-13 20:20:17 +00:00
MachO.h Add the rest of the error checking for Mach-O dyld compact bind entry errors 2017-03-20 19:46:55 +00:00
MachOUniversal.h Fix a bugs with using some Mach-O command line flags like "-arch armv7m". 2016-12-16 22:54:02 +00:00
ModuleSummaryIndexObjectFile.h Object: Make SymbolicFile::symbol_{begin,end}() virtual and remove unnecessary wrappers. 2016-11-22 03:38:40 +00:00
ModuleSymbolTable.h Perform symbol binding for .symver versioned symbols 2017-03-09 00:19:49 +00:00
ObjectFile.h [ARM] Avoid using ARM instructions in Thumb mode 2017-01-31 14:35:01 +00:00
RelocVisitor.h AMDGPU/RelocVisitor: Handle R_AMDGPU_ABS64 2017-03-13 06:03:11 +00:00
StackMapParser.h [Stackmap] Added callsite counts to emitted function information. 2016-09-14 20:22:03 +00:00
SymbolicFile.h Fix incorrect formatting of DataRefImpl members in operator<< function 2017-02-15 12:58:41 +00:00
SymbolSize.h Fix llvm-symbolizer to correctly sort a symbol array and calculate symbol sizes 2016-11-15 21:07:03 +00:00
Wasm.h [MC] Fix some Clang-tidy modernize and Include What You Use warnings in SubtargetFeature; other minor fixes (NFC). 2017-02-09 01:09:54 +00:00