diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-08-18 16:39:19 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-08-18 16:39:19 +0000 |
commit | c6bf547564088ad0ba0b2f281ffa813974f66bda (patch) | |
tree | b324aee5a585bf13f72204ffc556374ea4695d52 /llvm/test/tools/llvm-objdump/coff-import-library.test | |
parent | 28671c83d6dc6221a5680b180e4ac9f41f26a50b (diff) | |
download | bcm5719-llvm-c6bf547564088ad0ba0b2f281ffa813974f66bda.tar.gz bcm5719-llvm-c6bf547564088ad0ba0b2f281ffa813974f66bda.zip |
llvm-objdump: add coff import library symbol listing support
This adds behaviour similar to binutils' objdump which can show symbols in an
import library. Differences from that stem around the fact that we do not
create section symbols nor the all import import descriptor symbol reference.
However, this does mean that the tool can serve as a possible replacement for
the existing tool.
llvm-svn: 279088
Diffstat (limited to 'llvm/test/tools/llvm-objdump/coff-import-library.test')
-rw-r--r-- | llvm/test/tools/llvm-objdump/coff-import-library.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/coff-import-library.test b/llvm/test/tools/llvm-objdump/coff-import-library.test new file mode 100644 index 00000000000..2590facc442 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/coff-import-library.test @@ -0,0 +1,12 @@ +RUN: llvm-objdump -t %p/Inputs/library.lib + +CHECK: [ 0](sec 0)(fl 0x00)(ty 0)(scl 0) (nx 0) 0x00000000 __imp__constant + +CHECK: [ 0](sec 0)(fl 0x00)(ty 0)(scl 0) (nx 0) 0x00000000 __imp__data + +CHECK: [ 0](sec 0)(fl 0x00)(ty 0)(scl 0) (nx 0) 0x00000000 __imp__function +CHECK: [ 1](sec 0)(fl 0x00)(ty 20)(scl 0) (nx 0) 0x00000000 _function + +CHECK: [ 0](sec 0)(fl 0x00)(ty 0)(scl 0) (nx 0) 0x00000000 __imp__ordinal +CHECK: [ 1](sec 0)(fl 0x00)(ty 20)(scl 0) (nx 0) 0x00000000 _ordinal + |