diff options
| author | Matt Davis <Matthew.Davis@sony.com> | 2019-02-01 17:38:08 +0000 |
|---|---|---|
| committer | Matt Davis <Matthew.Davis@sony.com> | 2019-02-01 17:38:08 +0000 |
| commit | 68fad505e2990c27e9580cb09cd55c76909143c6 (patch) | |
| tree | 1d5c03666c90a9d3e9ba027d305b0306232190b7 /llvm/test/Object/nm-trivial-object.test | |
| parent | 123883807dfe583d85c4493d58f39275cc1ab6ba (diff) | |
| download | bcm5719-llvm-68fad505e2990c27e9580cb09cd55c76909143c6.tar.gz bcm5719-llvm-68fad505e2990c27e9580cb09cd55c76909143c6.zip | |
[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
Diffstat (limited to 'llvm/test/Object/nm-trivial-object.test')
| -rw-r--r-- | llvm/test/Object/nm-trivial-object.test | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/llvm/test/Object/nm-trivial-object.test b/llvm/test/Object/nm-trivial-object.test index 1a593857f70..086456ef1c7 100644 --- a/llvm/test/Object/nm-trivial-object.test +++ b/llvm/test/Object/nm-trivial-object.test @@ -116,20 +116,21 @@ ABSOLUTE-ELF64: 0000000000000123 a a1 ABSOLUTE-ELF64: 0000000000000123 A a2 ELF64-DEBUG-SYMS: 00000000 b .bss -ELF64-DEBUG-SYMS: 00000000 d .data -ELF64-DEBUG-SYMS: 00000000 N .debug_abbrev -ELF64-DEBUG-SYMS: 00000000 N .debug_aranges -ELF64-DEBUG-SYMS: 00000000 N .debug_frame -ELF64-DEBUG-SYMS: 00000000 N .debug_info -ELF64-DEBUG-SYMS: 00000000 N .debug_line -ELF64-DEBUG-SYMS: 00000000 N .debug_pubnames -ELF64-DEBUG-SYMS: 00000000 n .note.GNU-stack -ELF64-DEBUG-SYMS: 00000000 t .text -ELF64-DEBUG-SYMS: 00000000 a IsNAN.cpp -ELF64-DEBUG-SYMS: 00000014 T _ZN4llvm5IsNANEd -ELF64-DEBUG-SYMS: 00000000 T _ZN4llvm5IsNANEf -ELF64-DEBUG-SYMS: U __isnan -ELF64-DEBUG-SYMS: U __isnanf +ELF64-DEBUG-SYMS-NEXT: 00000000 n .comment +ELF64-DEBUG-SYMS-NEXT: 00000000 d .data +ELF64-DEBUG-SYMS-NEXT: 00000000 N .debug_abbrev +ELF64-DEBUG-SYMS-NEXT: 00000000 N .debug_aranges +ELF64-DEBUG-SYMS-NEXT: 00000000 N .debug_frame +ELF64-DEBUG-SYMS-NEXT: 00000000 N .debug_info +ELF64-DEBUG-SYMS-NEXT: 00000000 N .debug_line +ELF64-DEBUG-SYMS-NEXT: 00000000 N .debug_pubnames +ELF64-DEBUG-SYMS-NEXT: 00000000 n .note.GNU-stack +ELF64-DEBUG-SYMS-NEXT: 00000000 t .text +ELF64-DEBUG-SYMS-NEXT: 00000000 a IsNAN.cpp +ELF64-DEBUG-SYMS-NEXT: 00000014 T _ZN4llvm5IsNANEd +ELF64-DEBUG-SYMS-NEXT: 00000000 T _ZN4llvm5IsNANEf +ELF64-DEBUG-SYMS-NEXT: U __isnan +ELF64-DEBUG-SYMS-NEXT: U __isnanf macho: U _SomeOtherFunction macho: 00000000 T _main |

