wiml@underhill.hhhh.org (Wim Lewis) writes:
Use the GCC attribute((constructor)) syntax for DLL initializer hooks if possible, instead of the inline-asm syntax.
The dll init routine needs to be in the .init section in order to be called first, attribute((constructor)) is not good enough. Why doesn't it work on OpenBSD? Is the section name different?