diff --git a/llvm/tools/llvm-objdump/ELFDump.cpp b/llvm/tools/llvm-objdump/ELFDump.cpp index 2d2a5b581d11..aa6aa94ccd9e 100644 --- a/llvm/tools/llvm-objdump/ELFDump.cpp +++ b/llvm/tools/llvm-objdump/ELFDump.cpp @@ -30,20 +30,20 @@ template void printProgramHeaders(const ELFFile *o) { 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_PHDR: outs() << " PHDR ";