[PATCH] D37710: [LLD] [MinGW] Pass the undecorated entry point name to the COFF linker

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 12 06:16:56 PDT 2017


mstorsjo added a comment.

In https://reviews.llvm.org/D37710#867877, @martell wrote:

> In https://reviews.llvm.org/D37710#867622, @mstorsjo wrote:
>
> > To add to the confusion, the DLL entry point in MSVC is by default named `_DllMainCRTStartup` (which after i386 mangling ends up as `__DllMainCRTStartup at 12`. In MinGW (and as in the defaults in the clang MinGW frontend), the DLL entry point is named `DllMainCRTStartup` which on i386 ends up as `_DllMainCRTStartup at 12`.
>
>
> Does gcc also pass the entry? If not then we should remove that from clang for consistency.


GCC doesn't pass it when creating exe's but does when creating dll's - exactly what clang does.


https://reviews.llvm.org/D37710





More information about the llvm-commits mailing list