https://bugs.winehq.org/show_bug.cgi?id=47484
Bug ID: 47484 Summary: `winetricks -q dotnet20sp1` fails when compiled with mingw (failure to relocate PE builtin ngen.exe) Product: Wine Version: 4.12.1 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: z.figura12@gmail.com Distribution: ---
winetricks overrides ngen.exe as builtin-only. However, both the native ngen.exe installed by the dotnet20sp1 installer and the PE builtin have the same load address of 0x400000. The loader loads the native ngen first, and then tries to load the PE builtin; the latter has to be relocated, but is compiled without relocations.
I suspect the loader should be unmapping the native ngen before trying to load the builtin one.