HomePhabricator

[llvm-readobj] - Don`t crash when --section-symbols is requested for an object…

Authored by grimar on Aug 25 2020, 3:37 AM.

Description

[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