diff options
| author | Kevin Enderby <enderby@apple.com> | 2017-07-20 23:08:41 +0000 |
|---|---|---|
| committer | Kevin Enderby <enderby@apple.com> | 2017-07-20 23:08:41 +0000 |
| commit | 3e95bd2239236df3e1417519d7fdae6b72c94c4e (patch) | |
| tree | 57b7fe7517be98c897adff09e118ebf66314669c /llvm/test/tools/llvm-objdump/Inputs | |
| parent | b5e9070388fac4e0ad123565290ca0a78378982d (diff) | |
| download | bcm5719-llvm-3e95bd2239236df3e1417519d7fdae6b72c94c4e.tar.gz bcm5719-llvm-3e95bd2239236df3e1417519d7fdae6b72c94c4e.zip | |
Add error handling to the dyld compact export entries in libObject.
lld needs a matching change for this will be my next commit.
Expect it to fail build until that matching commit is picked up by the bots.
Like the changes in r296527 for dyld bind entires and the changes in
r298883 for lazy bind, weak bind and rebase entries the export
entries are the last of the dyld compact info to have error handling added.
This follows the model of iterators that can fail that Lang Hanes
designed when fixing the problem for bad archives r275316 (or r275361).
So that iterating through the exports now terminates if there is an error
and returns an llvm::Error with an error message in all cases for malformed
input.
This change provides the plumbing for the error handling, all the needed
testing of error conditions and test cases for all of the unique error messages.
llvm-svn: 308690
Diffstat (limited to 'llvm/test/tools/llvm-objdump/Inputs')
12 files changed, 0 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/Inputs/macho-inconsistant-export b/llvm/test/tools/llvm-objdump/Inputs/macho-inconsistant-export Binary files differnew file mode 100755 index 00000000000..da137800a8d --- /dev/null +++ b/llvm/test/tools/llvm-objdump/Inputs/macho-inconsistant-export diff --git a/llvm/test/tools/llvm-objdump/Inputs/macho-trie-bad-export-info-malformed-uleb128 b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-bad-export-info-malformed-uleb128 Binary files differnew file mode 100755 index 00000000000..57ae7bd6c07 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-bad-export-info-malformed-uleb128 diff --git a/llvm/test/tools/llvm-objdump/Inputs/macho-trie-bad-export-info-malformed-uleb128_too_big b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-bad-export-info-malformed-uleb128_too_big Binary files differnew file mode 100755 index 00000000000..06e005d209d --- /dev/null +++ b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-bad-export-info-malformed-uleb128_too_big diff --git a/llvm/test/tools/llvm-objdump/Inputs/macho-trie-bad-kind b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-bad-kind Binary files differnew file mode 100755 index 00000000000..809d0be2820 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-bad-kind diff --git a/llvm/test/tools/llvm-objdump/Inputs/macho-trie-bad-library-ordinal b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-bad-library-ordinal Binary files differnew file mode 100755 index 00000000000..cbe8c2c62d7 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-bad-library-ordinal diff --git a/llvm/test/tools/llvm-objdump/Inputs/macho-trie-children-count-byte b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-children-count-byte Binary files differnew file mode 100755 index 00000000000..63d389b6586 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-children-count-byte diff --git a/llvm/test/tools/llvm-objdump/Inputs/macho-trie-edge-string-end b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-edge-string-end Binary files differnew file mode 100755 index 00000000000..573bf8ea710 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-edge-string-end diff --git a/llvm/test/tools/llvm-objdump/Inputs/macho-trie-export-info-size-too-big b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-export-info-size-too-big Binary files differnew file mode 100755 index 00000000000..e41f314355f --- /dev/null +++ b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-export-info-size-too-big diff --git a/llvm/test/tools/llvm-objdump/Inputs/macho-trie-import-name-end b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-import-name-end Binary files differnew file mode 100755 index 00000000000..f1d8f67ade0 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-import-name-end diff --git a/llvm/test/tools/llvm-objdump/Inputs/macho-trie-import-name-start b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-import-name-start Binary files differnew file mode 100755 index 00000000000..4f7e93c4fc0 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-import-name-start diff --git a/llvm/test/tools/llvm-objdump/Inputs/macho-trie-node-loop b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-node-loop Binary files differnew file mode 100755 index 00000000000..b94dfa2610e --- /dev/null +++ b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-node-loop diff --git a/llvm/test/tools/llvm-objdump/Inputs/macho-trie-not-export-node b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-not-export-node Binary files differnew file mode 100755 index 00000000000..38882762cf0 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/Inputs/macho-trie-not-export-node |

