llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Improve the behaviour of llvm-nm when symbols with invalid section indexes are encountered

Open chrisjbris opened this issue 7 years ago • 0 comments

Bugzilla Link 41515
Version trunk
OS Windows NT

Extended Description

When a symbol with an invalid section index is encountered, llvm-nm does not print an error. It simply omits the symbol from the printable symbol list. The desired behaviour can likely be achieved by altering the branch in dumpSymbolNamesFromObject() when getSymbolAddress() returns an error, either to add the symbol to the printable symbol list or print an error.

chrisjbris avatar Apr 16 '19 17:04 chrisjbris