HomePhabricator

[llvm-readobj] - Do not report invalid amount of sections.

Authored by grimar on Jul 19 2018, 7:52 AM.

Description

[llvm-readobj] - Do not report invalid amount of sections.

When output style is GNU and amount of sections is >= SHN_LORESERVE,
llvm-readobj reports zero number of sections instead of actual value.

The patch fixes that.

Differential revision: https://reviews.llvm.org/D49544

llvm-svn: 337462