diff options
author | Rui Ueyama <ruiu@google.com> | 2013-09-27 00:07:01 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2013-09-27 00:07:01 +0000 |
commit | 5b1adbaad9a18084e4da2cac4216b828c179d40f (patch) | |
tree | 93482a3ba0934585195688873c42b672df810ca0 /llvm/test/tools/llvm-objdump/coff-private-headers.test | |
parent | 6ac40036f152242e1bfae177614c090e1995d824 (diff) | |
download | bcm5719-llvm-5b1adbaad9a18084e4da2cac4216b828c179d40f.tar.gz bcm5719-llvm-5b1adbaad9a18084e4da2cac4216b828c179d40f.zip |
llvm-objdump: Dump COFF import table if -private-headers option is given.
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.
Differential Revision: http://llvm-reviews.chandlerc.com/D1719
llvm-svn: 191472
Diffstat (limited to 'llvm/test/tools/llvm-objdump/coff-private-headers.test')
-rw-r--r-- | llvm/test/tools/llvm-objdump/coff-private-headers.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/coff-private-headers.test b/llvm/test/tools/llvm-objdump/coff-private-headers.test new file mode 100644 index 00000000000..d36c148cec6 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/coff-private-headers.test @@ -0,0 +1,9 @@ +// RUN: llvm-objdump -p %p/Inputs/nop.exe.coff-i386 | FileCheck %s + +CHECK: The Import Tables: +CHECK-NEXT: lookup 00005028 time 00000000 fwd 00000000 name 00005096 addr 00005058 +CHECK: DLL Name: KERNEL32.dll +CHECK-NEXT: Hint/Ord Name +CHECK-NEXT: 365 ExitProcess + + |