OSDN Git Service

Handle the lack of a symbol table correctly.
authorStephen Hines <srhines@google.com>
Thu, 26 Jul 2018 20:05:31 +0000 (20:05 +0000)
committerStephen Hines <srhines@google.com>
Thu, 26 Jul 2018 20:05:31 +0000 (20:05 +0000)
commit1028e2499b54c8d120e3f2088bb8db49400194ce
tree1567703a0dc649e7fe46d93d60590c88a61fe9b3
parent3c58d5b196e9a9ff435b5cefc8d39d8fde750ba1
Handle the lack of a symbol table correctly.

Summary:
These two cases will trigger a dereference on a nullptr, since the
SymbolTable can be nonexistent for a given library, in addition to just
being empty.

Reviewers: alexshap

Reviewed By: alexshap

Subscribers: meikeb, kongyi, chh, jakehehrlich, llvm-commits, pirama

Differential Revision: https://reviews.llvm.org/D49534

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@338062 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objcopy/strip-all.test
tools/llvm-objcopy/llvm-objcopy.cpp