[D-runtime] druntime ModuleInfo discovery without bracketing segments

Iain Buclaw ibuclaw at ubuntu.com
Fri Jun 14 07:09:23 PDT 2013


On 14 June 2013 13:58, David Nadlinger <code at klickverbot.at> wrote:
> Hi Martin,
>
> I'm working on the LDC 2.063 merge right now, and it would obviosuly
> be nice to finally support shared libraries in LDC as well (PIC/shared
> object codegen works since ages ago, but runtime support was missing
> so far).
>

Further to this, have you got some documentation somewhere on how
DMD's compiler/runtime solution ties together?

>
> While I'm quite sure this would work for load-time bound shared
> objects, I didn't really think about the dlopen() case yet. Do you
> think this would be feasible, or do you have any better ideas?
>

dlopen() should call the all .ctors on load no problem.


--
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


More information about the D-runtime mailing list