[Darwine] Re: Re Winebuild : Fix spec32 file generation for Darwin

Alexandre Julliard julliard at winehq.org
Mon Apr 19 19:16:46 CDT 2004

emmanuel maillard <e.rsz at libertysurf.fr> writes:

> init() fini() and end are not part of mach-o.
> Initialisation are already call by dlopen and previous version
> from pierre make recall initialisation stuff for all dlls each time
> you load one.
> So __wine_register_dll_16 failed due to assertion.

But your way won't work right either, because we need to intercept
constructors and run them from the dll entry point, which is the point
of the init/fini stuff we are doing there. So you will need to adapt
that for whatever constructor mechanism mach-o is using.

> SizeOfImge can be compute like this :
> [...]
> if you want i'll add this for computing image size.

No, I think the current _end hack is much simpler, and good enough for
our purposes.

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list