diff options
author | Matt Davis <Matthew.Davis@sony.com> | 2019-01-31 19:42:21 +0000 |
---|---|---|
committer | Matt Davis <Matthew.Davis@sony.com> | 2019-01-31 19:42:21 +0000 |
commit | 82937e44bd70c6141593427ce677d9c9f991d0a0 (patch) | |
tree | e503623a41161f8bf1c97768d3d21c0ac2ea36b7 /llvm/lib/Transforms/Utils/ModuleUtils.cpp | |
parent | 4061b440575e9e52fd50c8c95bc94aa597f93cc3 (diff) | |
download | llvm-82937e44bd70c6141593427ce677d9c9f991d0a0.zip llvm-82937e44bd70c6141593427ce677d9c9f991d0a0.tar.gz llvm-82937e44bd70c6141593427ce677d9c9f991d0a0.tar.bz2 |
[ELF] Return the section name when calling getSymbolName on a section symbol.
Summary:
Previously, llvm-nm would report symbols for .debug and .note sections as: '?' with an empty section name:
```
00000000 ?
00000000 ?
...
```
With this patch the output more closely resembles GNU nm:
```
00000000 N .debug_abbrev
00000000 n .note.GNU-stack
...
```
This patch calls `getSectionName` for sections that belong to symbols of type `ELF::STT_SECTION`, which returns the name of the section from the section string table.
Reviewers: Bigcheese, davide, jhenderson
Reviewed By: davide, jhenderson
Subscribers: rupprecht, jhenderson, llvm-commits
Differential Revision: https://reviews.llvm.org/D57105
llvm-svn: 352785
Diffstat (limited to 'llvm/lib/Transforms/Utils/ModuleUtils.cpp')
0 files changed, 0 insertions, 0 deletions