[llvm-readobj] - Don`t crash when --section-symbols is requested for an object w...
authorGeorgii Rymar <grimar@accesssoftek.com>
Tue, 25 Aug 2020 10:37:32 +0000 (13:37 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Wed, 26 Aug 2020 11:13:05 +0000 (14:13 +0300)
commit7749e2de20d82a6bb8b8beaa74b2a8dbd8232067
tree2a700ca5b4da2167c2e8fe41fda551e7a8c0afb3
parentf65ab626e549f8ddd4cdf10ac12371de3af73aa7
[llvm-readobj] - Don`t crash when --section-symbols is requested for an object w/o .symtab.

llvm-readobj crashes when `-S --section-symbols` is used
on an object that has no symbol table.

The patch fixes it.

Differential revision: https://reviews.llvm.org/D86520
llvm/test/tools/llvm-readobj/ELF/sections-ext.test
llvm/tools/llvm-readobj/ELFDumper.cpp