llvm-readobj: add support for printing GNU Notes
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 30 Aug 2016 18:52:02 +0000 (18:52 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 30 Aug 2016 18:52:02 +0000 (18:52 +0000)
commit6a405448f396afda39e2ed9054c492f5943acd8f
treeda439e5e305bf65c7c845c02e6828374e336011e
parent2613d98f2a120b359497e59cdc405584b0115ce2
llvm-readobj: add support for printing GNU Notes

Add support for printing the GNU Notes.  This allows an easy way to view the
build id for a binary built with the build id.  Currently, this only handles the
GNU notes, though it would be easy to extend for other note types (default,
FreeBSD, NetBSD, etc).  Only the GNU style is supported currently.

llvm-svn: 280131
llvm/test/tools/llvm-readobj/gnu-notes.test [new file with mode: 0644]
llvm/tools/llvm-readobj/ELFDumper.cpp
llvm/tools/llvm-readobj/ObjDumper.h
llvm/tools/llvm-readobj/llvm-readobj.cpp