mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 04:11:01 +00:00
![]() 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> |
||
---|---|---|
.. | ||
main.c | ||
main.h | ||
Makefile.in | ||
preloader.c | ||
preloader_mac.c | ||
wine.de.UTF-8.man.in | ||
wine.desktop | ||
wine.fr.UTF-8.man.in | ||
wine.inf.in | ||
wine.man.in | ||
wine.pl.UTF-8.man.in | ||
wine_info.plist.in |