Sweden-Number/loader
Brendan Shanks 307f5d00f1 loader: On Mac, reserve an area starting at 4GB to force Rosetta's allocations higher.
On Apple Silicon, Rosetta allocates memory starting at 0x100000000
(the 4GB line) before the preloader runs.
The .NET 3.5 installer and DirectX Jun2010 redistributable both contain
non-relocatable EXEs with that base address, which fail to run.

The workaround is to create an empty linker section at that address,
which is mapped by the kernel before Rosetta runs and forces Rosetta's
allocations higher in memory.
The linker section runs from 0x100000000-0x114000000.
Rosetta's allocations are ~132MB, and should end below 0x120000000.

This is not an exact science: a non-relocatable EXE with base address
between 0x114000000-0x120000000 will fail to run. If one is discovered,
the section size will need to be changed.

Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-29 10:16:48 +01:00
..
Makefile.in wineusb.sys: Move wineusb.inf into the module resources. 2020-11-11 11:04:40 +01:00
main.c loader: No longer depend on libwine. 2020-09-08 16:26:17 +02:00
main.h
preloader.c include: Move inline assembly definitions to a new wine/asm.h header. 2019-05-14 13:45:07 +02:00
preloader_mac.c loader: On Mac, reserve an area starting at 4GB to force Rosetta's allocations higher. 2021-01-29 10:16:48 +01:00
wine.de.UTF-8.man.in loader: Move WineHQ URLs to https. 2017-12-01 09:22:33 +01:00
wine.desktop wine.desktop: Add Turkish translation. 2017-03-24 21:15:23 +01:00
wine.fr.UTF-8.man.in loader: Move WineHQ URLs to https. 2017-12-01 09:22:33 +01:00
wine.inf.in wine.inf: Store Dynamic DST data for Asia/Tehran as "relative" dates. 2020-12-15 22:09:21 +01:00
wine.man.in loader: Move WineHQ URLs to https. 2017-12-01 09:22:33 +01:00
wine.pl.UTF-8.man.in loader/wine.pl.UTF-8.man.in: Move WineHQ URL to https. 2017-12-07 19:13:55 +01:00
wine_info.plist.in