[llvm-nm] Report '.comment' ELF sections as 'n' instead of '?'
authorMatt Davis <Matthew.Davis@sony.com>
Fri, 1 Feb 2019 17:38:08 +0000 (17:38 +0000)
committerMatt Davis <Matthew.Davis@sony.com>
Fri, 1 Feb 2019 17:38:08 +0000 (17:38 +0000)
commit68fad505e2990c27e9580cb09cd55c76909143c6
tree1d5c03666c90a9d3e9ba027d305b0306232190b7
parent123883807dfe583d85c4493d58f39275cc1ab6ba
[llvm-nm] Report '.comment' ELF sections as 'n' instead of '?'

Summary:
The previous implementation reported `.comment` sections as '?'
GNU uses 'n' which means  "The symbol is a debugging symbol."  `.note`  sections are represented as 'n' too.

The test related to this change was updated to CHECK-NEXT to ensure
order and that we did not miss any symbols in the dump.

Reviewers: jhenderson

Reviewed By: jhenderson

Subscribers: rupprecht, llvm-commits

Differential Revision: https://reviews.llvm.org/D57544

llvm-svn: 352891
llvm/test/Object/nm-trivial-object.test
llvm/tools/llvm-nm/llvm-nm.cpp