On 2015-09-13 12:10, Jakob Ovrum wrote:

On Linux and other ELF-using platforms, initialization and
deinitialization functions could be placed in the .init and .deinit
special sections, but I don't know if druntime has any convenient
provisions for this. With GDC and LDC you can probably use a pragma to
put functions in these sections, but I don't know if DMD has such a pragma.

I don't know what the equivalent is for Apple's Mach-O shared libraries.

It's supported in Mach-O as well, not sure about the section names though.

--
/Jacob Carlborg

Reply via email to