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 }}
Repository navigation
NativeAOT shared libraries have no SONAME, which breaks versioned symbol lookup on Android #137829
A Native AOT library built with NativeLib=Shared on Linux has no DT_SONAME: Microsoft.NETCore.Native.Unix.targets doesn't pass -soname. glibc tolerates that, but bionic matches DT_VERNEED entries against the SONAMEs of loaded libraries, so an executable that uses versioned symbols from such a library can't load on Android:
CANNOT LINK EXECUTABLE "./dotnet-dev-certs": cannot find "libaspnetcoretools.so" from verneed[0] in DT_NEEDED list for ".../dotnet-dev-certs"
This is the aspnetcore tools aggregate from a linux-bionic-arm64 source build of 11.0.0 (Termux), on API 37:
Passing -Wl,-soname,<output file name> for shared libraries would fix it. Termux works around it by bundling the tools without Native AOT on linux-bionic.
Activity
dotnet-policy-service commentedon Nov 18, 2026
Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
See info in area-owners.md if you want to be subscribed.
MihuBot commentedon Nov 18, 2026
I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):
.sofiles need to haveDT_SONAMEset. android#1910dotnet-policy-service commentedon Nov 19, 2026
Tagging subscribers to 'arch-android': @vitek-karas, @simonrozsival, @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.
Set DT_SONAME on NativeAOT shared libraries for non-Apple Unix targets (