Home

llvm-readobj: add support for PE32+ (Windows 64 bit executable).

Press ? to show keyboard shortcuts.
Auditors
Bigcheese
H1 Object File Stuff Triggered Audit
Committed
ruiuJan 25 2014, 8:15 PM
Parents
rL200116: Remove -print-hack-directives from a test where we already do the right thing.
Branches
Unknown
Tags
Unknown
Subscribers
None
Projects
None
Description

llvm-readobj: add support for PE32+ (Windows 64 bit executable).

PE32+ supports 64 bit address space, but the file format remains 32 bit.
So its file format is pretty similar to PE32 (32 bit executable). The
differences compared to PE32 are (1) the lack of "BaseOfData" field and
(2) some of its data members are 64 bit.

In this patch, I added a new member function to get a PE32+ Header object to
COFFObjectFile class and made llvm-readobj to use it.

rL200117

llvm/trunk/include/llvm/Object/COFF.h

Loading...

llvm/trunk/lib/Object/COFFObjectFile.cpp

Loading...

llvm/trunk/test/tools/llvm-readobj/Inputs/nop.exe.coff-x86-64

Loading...

llvm/trunk/test/tools/llvm-readobj/peplus.test

Loading...

llvm/trunk/tools/llvm-readobj/COFFDumper.cpp

Loading...

Add Comment