diff options
| author | Martell Malone <martellmalone@gmail.com> | 2017-07-18 21:26:38 +0000 |
|---|---|---|
| committer | Martell Malone <martellmalone@gmail.com> | 2017-07-18 21:26:38 +0000 |
| commit | 1079ef8dfe867945bbced7cdc3e724d406cd2c41 (patch) | |
| tree | b3158e44cbb012317a88e547e354ec35391316b8 /llvm/test/DllTool | |
| parent | f6b8ac28ab582bd0850482e9bee450c7d78450d7 (diff) | |
| download | bcm5719-llvm-1079ef8dfe867945bbced7cdc3e724d406cd2c41.tar.gz bcm5719-llvm-1079ef8dfe867945bbced7cdc3e724d406cd2c41.zip | |
llvm: add llvm-dlltool support to the archiver
A PE COFF spec compliant import library generator.
Intended to be used with mingw-w64.
Supports:
PE COFF spec (section 8, Import Library Format)
PE COFF spec (Aux Format 3: Weak Externals)
Reviewed By: ruiu
Differential Revision: https://reviews.llvm.org/D29892
This reapplies rL308329, which was reverted in rL308374
llvm-svn: 308379
Diffstat (limited to 'llvm/test/DllTool')
| -rw-r--r-- | llvm/test/DllTool/coff-exports.def | 13 | ||||
| -rw-r--r-- | llvm/test/DllTool/coff-weak-exports.def | 19 | ||||
| -rw-r--r-- | llvm/test/DllTool/lit.local.cfg | 1 |
3 files changed, 33 insertions, 0 deletions
diff --git a/llvm/test/DllTool/coff-exports.def b/llvm/test/DllTool/coff-exports.def new file mode 100644 index 00000000000..0226886a523 --- /dev/null +++ b/llvm/test/DllTool/coff-exports.def @@ -0,0 +1,13 @@ +; RUN: llvm-dlltool -m i386:x86-64 --input-def %s --output-lib %t.a +; RUN: llvm-readobj -coff-exports %t.a | FileCheck %s + +LIBRARY test.dll +EXPORTS +TestFunction + +; CHECK: File: test.dll +; CHECK: Format: COFF-import-file +; CHECK: Type: code +; CHECK: Name type: name +; CHECK: Symbol: __imp_TestFunction +; CHECK: Symbol: TestFunction diff --git a/llvm/test/DllTool/coff-weak-exports.def b/llvm/test/DllTool/coff-weak-exports.def new file mode 100644 index 00000000000..511d947d839 --- /dev/null +++ b/llvm/test/DllTool/coff-weak-exports.def @@ -0,0 +1,19 @@ +; RUN: llvm-dlltool -m i386:x86-64 --input-def %s --output-lib %t.a +; RUN: llvm-readobj -coff-exports %t.a | FileCheck %s + +LIBRARY test.dll +EXPORTS +TestFunction==AltTestFunction + +; CHECK: File: test.dll +; CHECK: Format: COFF-x86-64 +; CHECK: Arch: x86_64 +; CHECK: AddressSize: 64bit +; CHECK: File: test.dll +; CHECK: Format: COFF-x86-64 +; CHECK: Arch: x86_64 +; CHECK: AddressSize: 64bit +; CHECK: File: test.dll +; CHECK: Format: COFF-x86-64 +; CHECK: Arch: x86_64 +; CHECK: AddressSize: 64bit diff --git a/llvm/test/DllTool/lit.local.cfg b/llvm/test/DllTool/lit.local.cfg new file mode 100644 index 00000000000..482608486d2 --- /dev/null +++ b/llvm/test/DllTool/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.def'] |

