[llvm] r201883 - llvm-objdump/COFF: LoadConfiguration does not exist in object file.
Rui Ueyama
ruiu at google.com
Fri Feb 21 12:27:15 PST 2014
Author: ruiu
Date: Fri Feb 21 14:27:15 2014
New Revision: 201883
URL: http://llvm.org/viewvc/llvm-project?rev=201883&view=rev
Log:
llvm-objdump/COFF: LoadConfiguration does not exist in object file.
Modified:
llvm/trunk/tools/llvm-objdump/COFFDump.cpp
Modified: llvm/trunk/tools/llvm-objdump/COFFDump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objdump/COFFDump.cpp?rev=201883&r1=201882&r2=201883&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objdump/COFFDump.cpp (original)
+++ llvm/trunk/tools/llvm-objdump/COFFDump.cpp Fri Feb 21 14:27:15 2014
@@ -253,6 +253,13 @@ printSEHTable(const COFFObjectFile *Obj,
}
static void printLoadConfiguration(const COFFObjectFile *Obj) {
+ // Skip if it's not executable.
+ const pe32_header *PE32Header;
+ if (error(Obj->getPE32Header(PE32Header)))
+ return;
+ if (!PE32Header)
+ return;
+
const coff_file_header *Header;
if (error(Obj->getCOFFHeader(Header)))
return;
More information about the llvm-commits
mailing list