You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.
To get an idea of how many and which native calls I need to implement on different game consoles I have written a small tool that scans assemblies for DLLImports. To my surprise I found some calls to Windows dlls in the SDK and framework folder that were build for an ARM64 Unix system.
I assume it's not a big issue as these functions might not be called at all and as CoreRT would use dynamic loading they will not cause any unresolved externals. But maybe someone is interested and like to clean it up at some point
In System.Private.CoreLib.dll I found
kernel32.dll
LCIDToLocaleName
LocaleNameToLCID
LCMapStringEx
FindNLSStringEx
CompareStringEx
CompareStringOrdinal
FindStringOrdinal
IsNLSDefinedString
GetUserPreferredUILanguages
GetLocaleInfoEx
EnumSystemLocalesEx
EnumTimeFormatsEx
GetCalendarInfoEx
GetUserGeoID
GetGeoInfo
EnumCalendarInfoExEx
GetNLSVersionEx
ResolveLocaleName
Normaliz.dll
IdnToAscii
IdnToUnicode
IsNormalizedString
NormalizeString
and another one in
System.Reflection.Metadata.dll
kernel32.dll
ReadFile
The text was updated successfully, but these errors were encountered:
Ah ... I forgot about the recent globalization changes. All kernel32.dll functions in the list are unreachable on Unix. We depend on the compiler or IL linker to strip them out.
Ignoring the almost guaranteed issues when building, this has most corelib files included but I ran into issues with the recent globalization changes and using kernel32 functions. dotnet/corert#8254 suggests that kernel32 library calls might be stripped out for non windows builds so this might have been fine.
To get an idea of how many and which native calls I need to implement on different game consoles I have written a small tool that scans assemblies for DLLImports. To my surprise I found some calls to Windows dlls in the SDK and framework folder that were build for an ARM64 Unix system.
I assume it's not a big issue as these functions might not be called at all and as CoreRT would use dynamic loading they will not cause any unresolved externals. But maybe someone is interested and like to clean it up at some point
In System.Private.CoreLib.dll I found
kernel32.dll
LCIDToLocaleName
LocaleNameToLCID
LCMapStringEx
FindNLSStringEx
CompareStringEx
CompareStringOrdinal
FindStringOrdinal
IsNLSDefinedString
GetUserPreferredUILanguages
GetLocaleInfoEx
EnumSystemLocalesEx
EnumTimeFormatsEx
GetCalendarInfoEx
GetUserGeoID
GetGeoInfo
EnumCalendarInfoExEx
GetNLSVersionEx
ResolveLocaleName
Normaliz.dll
IdnToAscii
IdnToUnicode
IsNormalizedString
NormalizeString
and another one in
System.Reflection.Metadata.dll
kernel32.dll
ReadFile
The text was updated successfully, but these errors were encountered: