[llvm-readelf] Print raw ELF note contents if we can't parse it
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Tue, 9 Feb 2021 16:21:25 +0000 (16:21 +0000)
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Tue, 9 Feb 2021 16:59:22 +0000 (16:59 +0000)
commit135df21248985579710e0cd3013d369de52dd354
tree3afc8a220ca2cff53f4958c3ce98db145f7a9a98
parentd613d8eb0eb84ad3cc494a5b45ad9f1f37eca88b
[llvm-readelf] Print raw ELF note contents if we can't parse it

Currently, if the note name is known, but the value isn't we don't print
the contents.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D74367
llvm/test/tools/llvm-readobj/ELF/gnu-note-size.test
llvm/test/tools/llvm-readobj/ELF/gnu-notes.test
llvm/test/tools/llvm-readobj/ELF/note-amd.s
llvm/test/tools/llvm-readobj/ELF/note-amdgpu-invalid.s
llvm/test/tools/llvm-readobj/ELF/note-amdgpu.test
llvm/tools/llvm-readobj/ELFDumper.cpp