[cfe-dev] [PATCH] plugin problem on Windows
Óscar Fuentes
ofv at wanadoo.es
Sun Apr 3 19:36:24 PDT 2011
Michael Spencer <bigcheesegs at gmail.com> writes:
>>> 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.
>>
>
> I was actually wrong. There is a 2^16 limit when using indexed exports
> (which is much faster at load time). If you don't use them, then the
> limit has an upper bound of (2^32) - 1.
What's the difference among indexed and non-indexed exports? The exports
file I created was just a list of symbols and the linker failed
complaining about the 2^16 limit. Then I read some documents on msdn and
the 2^16 limit was mentioned, but nothing about 2^32.
More information about the cfe-dev
mailing list