[PATCH] D28085: llvm-objdump: sort phdr strings and add PT_NOTE
Ed Maste via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 23 17:00:57 PST 2016
emaste created this revision.
emaste added a subscriber: llvm-commits.
https://reviews.llvm.org/D28085
Files:
tools/llvm-objdump/ELFDump.cpp
Index: tools/llvm-objdump/ELFDump.cpp
===================================================================
--- tools/llvm-objdump/ELFDump.cpp
+++ tools/llvm-objdump/ELFDump.cpp
@@ -30,20 +30,23 @@
errorToErrorCode(ProgramHeaderOrError.takeError()).message());
for (const typename ELFO::Elf_Phdr &Phdr : *ProgramHeaderOrError) {
switch (Phdr.p_type) {
- case ELF::PT_LOAD:
- outs() << " LOAD ";
- break;
- case ELF::PT_GNU_STACK:
- outs() << " STACK ";
+ case ELF::PT_DYNAMIC:
+ outs() << " DYNAMIC ";
break;
case ELF::PT_GNU_EH_FRAME:
outs() << "EH_FRAME ";
break;
+ case ELF::PT_GNU_STACK:
+ outs() << " STACK ";
+ break;
case ELF::PT_INTERP:
outs() << " INTERP ";
break;
- case ELF::PT_DYNAMIC:
- outs() << " DYNAMIC ";
+ case ELF::PT_LOAD:
+ outs() << " LOAD ";
+ break;
+ case ELF::PT_NOTE:
+ outs() << " NOTE ";
break;
case ELF::PT_PHDR:
outs() << " PHDR ";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28085.82429.patch
Type: text/x-patch
Size: 1031 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161224/96941bf7/attachment.bin>
More information about the llvm-commits
mailing list