https://bugs.winehq.org/show_bug.cgi?id=52934
Bug ID: 52934 Summary: wine can't load ntdll.so on asahi linux (apple M1 hardware, linux kernel/userland) Product: Wine Version: 7.7 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: dark.shadow4@web.de Distribution: ---
Created attachment 72306 --> https://bugs.winehq.org/attachment.cgi?id=72306 ntdll.dll that can't be loaded
Follow-up to bug 52715. After setting the page size to 16k, you can try to run "wine winecfg", for example.
This results in an error:
wine: failed to load /home/fabian/Programming/Wine/wine/dlls/ntdll/ntdll.dll error c000007b
Error is at the following code:
for (i = 0; i < nt->FileHeader.NumberOfSections; i++) { if (sec[i].VirtualAddress != sec[i].PointerToRawData) return status; /* Windows refuses to load in that case too */ }
Adding debug code:
printf("Section %i: VirtualAddress: %p\n, PointerToRawData: %p\n", sec[i].VirtualAddress, sec[i].PointerToRawData);
yields
Section 4: VirtualAddress: 0x81000, PointerToRawData: 0x7d000
Using llvm-mingw from here: https://github.com/mstorsjo/llvm-mingw/releases/tag/20220323 Not sure if the dll itself is broken...? Attaching the dll for completeness sake.