aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorJordan Rupprecht <rupprecht@google.com>2020-03-04 14:20:48 -0800
committerJordan Rupprecht <rupprecht@google.com>2020-03-05 09:53:14 -0800
commitc140810ea158074c97bff4d3bd66c0e06aed6d93 (patch)
treeb5abcea847aeea497f5945ec0099b50e1e98c7f1 /llvm/tools/llvm-objdump/llvm-objdump.cpp
parentc93f1046fc15ca01f55c2e7955e88eaf8e0569d6 (diff)
downloadllvm-c140810ea158074c97bff4d3bd66c0e06aed6d93.zip
llvm-c140810ea158074c97bff4d3bd66c0e06aed6d93.tar.gz
llvm-c140810ea158074c97bff4d3bd66c0e06aed6d93.tar.bz2
[llvm-readobj] Include section name of notes.
This changes the output of `llvm-readelf -n` from: ``` Displaying notes found at file offset 0x<...> with length 0x<...>: ``` to: ``` Displaying notes found in: .note.foo ``` And similarly, adds a `Name:` field to the `llvm-readobj -n` output for notes. This change not only increases GNU compatibility, it also makes it much easier to read notes. Note that we still fall back to printing the file offset/length in cases where we don't have a section name, such as when printing notes in program headers or printing notes in a partially stripped file (GNU readelf does the same). Fixes llvm.org/PR41339. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D75647
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions