summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object
diff options
context:
space:
mode:
authorMatt Davis <Matthew.Davis@sony.com>2019-01-31 19:42:21 +0000
committerMatt Davis <Matthew.Davis@sony.com>2019-01-31 19:42:21 +0000
commit82937e44bd70c6141593427ce677d9c9f991d0a0 (patch)
treee503623a41161f8bf1c97768d3d21c0ac2ea36b7 /llvm/lib/Object
parent4061b440575e9e52fd50c8c95bc94aa597f93cc3 (diff)
downloadbcm5719-llvm-82937e44bd70c6141593427ce677d9c9f991d0a0.tar.gz
bcm5719-llvm-82937e44bd70c6141593427ce677d9c9f991d0a0.zip
[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/Object')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud