[PATCH 1/3] makedep: Align PE sections so they can be mmapped.

Alexandre Julliard julliard at winehq.org
Sun May 31 08:57:49 CDT 2020

Jacek Caban <jacek at codeweavers.com> writes:

> Oh, right. Being more friendly for the loader is a valid argument to
> use it in Wine.
> I measured build size change by checking 32-bit prefix size (so not
> exactly measuring build size, but with shared Gecko and Mono installs,
> it's mostly PEs that are in prefix and I already had it scripted). GCC
> build size increased from 133MB to 152MB, clang build (where I used
> CROSSLDFLAGS=-Wl,-Xlink=-filealign:409) from 121MB to 139MB. This is
> not great, but probably not a deal breaker. This would still need a
> configure check.

It should probably be handled in winegcc instead of configure.

Being able to mmap files is also a good thing WRT memory usage, so I
feel it would be worth doing even if the size increases a bit.

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list