]> granicus.if.org Git - llvm/commit
[llvm-readobj] Fallback to PT_NOTE if file doesn't have sections
authorPetr Hosek <phosek@chromium.org>
Fri, 16 Aug 2019 23:15:40 +0000 (23:15 +0000)
committerPetr Hosek <phosek@chromium.org>
Fri, 16 Aug 2019 23:15:40 +0000 (23:15 +0000)
commit2688eabe559e30d49612143ecbdd084fd94fe7c7
treefc434acbaccb0900edbdf0fcde4e4d16ff6d5268
parentf67401bb318680e6b6844cc009bd7e73e684a826
[llvm-readobj] Fallback to PT_NOTE if file doesn't have sections

This is useful when trying to read notes from stripped files and matches
the behavior of GNU readelf and eu-readelf.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369169 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-readobj/gnu-notes.test
tools/llvm-readobj/ELFDumper.cpp