Issues with linker map file

Benjamin Thaut code at benjamin-thaut.de
Sun Jan 29 10:20:05 PST 2012


Am 29.01.2012 18:24, schrieb Rainer Schuetze:
>
>
> On 29.01.2012 17:05, Benjamin Thaut wrote:
>> Ok I found a bug ticket about this issue:
>> http://d.puremagic.com/issues/show_bug.cgi?id=6673
>>
>> Would this be very hard to fix?
>> I have a working druntime.dll but now that I need to add more exports
>> this bug is a real showstopper.
>>
>> Kind Regards
>> Benjamin Thaut
>
> Be prepared for more trouble: IIRC the number of exports in the def
> file, that optlink supports is limited.
>
> I guess you might know, but here are patches to build a phobos.dll, but
> they are almost 2 years old now:
> http://d.puremagic.com/issues/show_bug.cgi?id=4071

I'm not really interrested in a phobos shared lib because I only use 2 
modules from phobos (traits, typetuple). I'm currently trying to make a 
shared library version of druntime so that I can create own shared 
libraries that all use the same druntime dll. Doing that I hope to 
bypass all the tls / gc issues, because there is only one instance of 
druntime. I don't want to dynamically load the dlls I just want to link 
them into the executables. If I'm not mistaken that would cause all 
symbols to be already resolved before any D code starts running.

Do you see any problem with this approach?
If optlink only supports a limited number of exports in the def file 
that is indeed going to be an issue.

Mabye if they get dynamic library support on linux done at some point 
the situation improves.

Kind Regards
Benjamin Thaut


More information about the Digitalmars-d mailing list