[PATCH] D52027: [llvm-readobj] Print ELF header flags names in GNU output
Simon Atanasyan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 13 05:34:24 PDT 2018
atanasyan created this revision.
atanasyan added reviewers: echristo, dblaikie, asb.
Herald added subscribers: PkmX, arichardson, sdardis.
GNU readelf tool prints hex value of the ELF header flags field and the flags names. This change adds the same functionality to llvm-readobj. Now llvm-readobj can print MIPS and RISCV flags.
New GNUStyle::printFlags() method is a copy of ScopedPrinter::printFlags() routine. Probably we can escape code duplication and / or simplify the printFlags() method. But it's a task for separate commit.
Repository:
rL LLVM
https://reviews.llvm.org/D52027
Files:
test/tools/llvm-readobj/gnu-file-headers.test
tools/llvm-readobj/ELFDumper.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52027.165258.patch
Type: text/x-patch
Size: 8741 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180913/77a798f9/attachment.bin>
More information about the llvm-commits
mailing list