Dynamic loading of shared libraries.

Jacob Carlborg doob at me.com
Fri Jun 17 09:11:02 PDT 2011


On 2011-06-13 16:19, Robert Clipsham wrote:
> On 13/06/2011 14:32, Andrei Alexandrescu wrote:
>> Two questions - first, what steps do we need to take to convince the
>> linker call from within dmd to work as above?
>>
>> Second, how about the converse - loading a shared library from a program
>> written in either C or D?
>
> I was under the impression that dmd couldn't produce shared libraries in
> its current state - doesn't its output clobber the PIC register or
> something when compiling with -fPIC?
>
> http://d.puremagic.com/issues/show_bug.cgi?id=4583
>
>> Thanks,
>>
>> Andrei

That's correct. And the runtime also will need a couple of changes as 
well. Like initializing module info, i.e. module constructors, exception 
handling tables and so on.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list