llvm-project
llvm-project copied to clipboard
Improve the behaviour of llvm-nm when symbols with invalid section indexes are encountered
| 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.