hanchenye-llvm-project/llvm/test/DllTool
Martin Storsjo 58c9527eaf [llvm-dlltool] Fix creating stdcall/fastcall import libraries for i386
Hook up the -k option (that in the original GNU dlltool removes the
@n suffix from the symbol that the final executable ends up linked to).

In llvm-dlltool, make sure that functions end up with the undecorate
name type if this option is set and they are decorated. In mingw, when
creating import libraries from def files instead of creating an import
library as a side effect of linking a DLL, the symbol names in the def
contain the stdcall/fastcall decoration (but no leading underscore).

By setting the undecorate name type, a linker linking to the import
library will omit the decoration from the DLL import entry.

With this in place, mingw-w64 for i386 built with llvm-dlltool/clang
produces import libraries that actually work.

Differential Revision: https://reviews.llvm.org/D36548

llvm-svn: 310990
2017-08-16 05:18:36 +00:00
..
coff-decorated.def [llvm-dlltool] Fix creating stdcall/fastcall import libraries for i386 2017-08-16 05:18:36 +00:00
coff-exports.def [llvm-dlltool] Map the "arm64" machine type 2017-08-06 19:58:13 +00:00
coff-weak-exports.def [llvm-dlltool] Write correct weak externals 2017-07-31 11:18:41 +00:00
lit.local.cfg llvm: add llvm-dlltool support to the archiver 2017-07-18 21:26:38 +00:00