[PATCH] llvm-objdump: Dump COFF import table if -private-headers option is given.
Rui Ueyama
ruiu at google.com
Wed Sep 18 16:06:40 PDT 2013
This is a patch to add capability to llvm-objdump to dump COFF Import Table
entries, so that we can write tests for LLD checking Import Table contents.
llvm-objdump did not print anything but just file name if the format is COFF
and -private-headers option is given. This is a patch adds capability for
dumping DLL Import Table, which is specific to the COFF format.
In this patch I defined a new iterator to iterate over import table entries.
Also added a few functions to COFFObjectFile.cpp to access fields of the entry.
http://llvm-reviews.chandlerc.com/D1719
Files:
include/llvm/Object/COFF.h
lib/Object/COFFObjectFile.cpp
test/tools/llvm-objdump/Inputs/nop.exe.coff-i386
test/tools/llvm-objdump/Inputs/trivial.obj.elf-i386
test/tools/llvm-objdump/Inputs/win64-unwind.exe.coff-x86_64
test/tools/llvm-objdump/Inputs/win64-unwind.exe.coff-x86_64.asm
test/tools/llvm-objdump/coff-private-headers.test
test/tools/llvm-objdump/disassembly-show-raw.s
test/tools/llvm-objdump/disassembly-show-raw.test
test/tools/llvm-objdump/lit.local.cfg
test/tools/llvm-objdump/win64-unwind-data.s
test/tools/llvm-objdump/win64-unwind-data.test
tools/llvm-objdump/COFFDump.cpp
tools/llvm-objdump/llvm-objdump.cpp
tools/llvm-objdump/llvm-objdump.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1719.1.patch
Type: text/x-patch
Size: 25535 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130918/e00e3168/attachment.bin>
More information about the llvm-commits
mailing list