[cfe-dev] [PATCH] plugin problem on Windows

Óscar Fuentes ofv at wanadoo.es
Sun Apr 3 16:49:39 PDT 2011


Michael Spencer <bigcheesegs at gmail.com> writes:

>> Anyways that's pointless because Clang (and LLVM) lacks the necessary
>> directives (exports file or declspec(dllimport|dllexport) on
>> declarations.) MinGW can do up to some point without those, because
>> binutils supports marking everything as exported, but VC++ requires
>> explicit directives.
>
> It's actually possible to do this without explicit directives by
> making use of link -dump to dump the symbol table to an export file
> and relink all the static libs into a giant DLL that exports
> everything. At one point I was working on this, but got pulled into
> other things.

There is a limit of 2^16 for the number of symbols you can list on a
export file. I know because you told me that.

I tried to export one library at a time instead of creating a single big
one, but some libraries exceeds the 2^16 limit.



More information about the cfe-dev mailing list