[PATCH] Fix Bugzillia ID 41830 - --all-headers output in wrong order for GNU compatibility
Nicholas Krause via llvm-commits
llvm-commits at lists.llvm.org
Sun May 12 14:51:04 PDT 2019
This fixes the bugzilla ID 41830 in order for the --all-headers command
flag to print correctly and comply to the standard set by GNU objdump
for printing out the information required by this flag.
Signed-off-by: Nicholas Krause <xerofoify at gmail.com>
---
llvm/tools/llvm-objdump/llvm-objdump.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp
index 3fddfd2d349..9bc6ebb7af1 100644
--- a/llvm/tools/llvm-objdump/llvm-objdump.cpp
+++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp
@@ -1912,6 +1912,8 @@ static void dumpObject(ObjectFile *O, const Archive *A = nullptr,
disassembleObject(O, Relocations);
if (Relocations && !Disassemble)
printRelocations(O);
+ if (PrivateHeaders || FirstPrivateHeader)
+ printPrivateFileHeaders(O, FirstPrivateHeader);
if (DynamicRelocations)
printDynamicRelocations(O);
if (SectionHeaders)
@@ -1922,8 +1924,6 @@ static void dumpObject(ObjectFile *O, const Archive *A = nullptr,
printSymbolTable(O, ArchiveName);
if (UnwindInfo)
printUnwindInfo(O);
- if (PrivateHeaders || FirstPrivateHeader)
- printPrivateFileHeaders(O, FirstPrivateHeader);
if (ExportsTrie)
printExportsTrie(O);
if (Rebase)
--
2.20.1
More information about the llvm-commits
mailing list