Ideas for runtime loading of shared libraries.

Jacob Carlborg doob at me.com
Tue Jan 3 09:56:56 PST 2012


On 2012-01-03 18:27, Sean Kelly wrote:
> The trick seems to be mapping in TLS (on OSX anyway) and running static crore at the right time. Are there other issues as well?

TLS has at least been an issue to me when trying to implement support 
for dynamic libraries on Mac OS X. I have no idea how the 
___tls_get_addr function should be implemented to support dynamic 
libraries, especially not since we're rolling our own implementation and 
there's no documentation to follow.

I don't think there's any problems with the static constructors.

I've posted about my problems before at the DMD internals mailing list:

http://dfeed.kimsufi.thecybershadow.net/discussion/post/F2166CBA-4F77-49F7-9949-9F3666C12840@me.com

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list