Alexandre Julliard : libwine: Ignore libraries that are of the wrong 32/ 64 class.

Alexandre Julliard julliard at
Fri Aug 14 05:29:08 CDT 2009

Ken Thomases <ken at> writes:

> Hi Alexandre,
> It seems this would fail to ignore a fat Mach-O library that doesn't
> include the right 32/64 class.  For example, a fat i386/ppc library
> when running 64-bit.
> A fat library starts with the struct fat_header defined in /usr/
> include/mach-o/fat.h, followed by a number of struct fat_arch-es.  Its
> magic is 0xcafebabe in big-endian order.

I doubt we are ever going to build Wine dlls as fat libraries.

> This would also fail to ignore a PowerPC-only library because the
> magic would be big-endian, but I doubt we care about that.

That's deliberate. It's only supposed to ignore valid libraries that
could be loaded if not for their wrong class. Libraries that can't be
loaded at all should trigger an error.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list