PATCH: Fix DLL constructors on OpenBSD

Alexandre Julliard julliard at
Fri Jan 2 13:18:41 CST 2004

wiml at (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?

Alexandre Julliard
julliard at

More information about the wine-devel mailing list