-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete NativeAOT_StaticInitialization #89291
Conversation
Undoes workaround from dotnet/runtimelab#270. Since bootstrapper no longer ships as a static library (it's an object file instead), we should no longer need this hack to force linker into looking at the archive.
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsUndoes workaround from dotnet/runtimelab#270. Since bootstrapper no longer ships as a static library (as of #74623 it's an object file instead), we should no longer need this hack to force linker into looking at the archive. Cc @dotnet/ilc-contrib
|
I'm pretty sure that the Xamarin integration relies on this. We definitely need to double-check before merging. |
I suspected that but a search in the dotnet organization on github found no hits for that outside this repo and samples repo. |
It's not about a hit for the function name ( |
I think that's the same problem that this was working around. The sole reason for this symbols existence is that the linker didn't even bother looking into the .a file because nothing was needed from it. Since it's now an .o file, the linker will open it. We have tests for CustomNativeMain in this repo (and SharedLibrary as well) that would fail if this got broken. I tested on Linux and it's not broken. Waiting for CI to test Windows. |
I mean, there's a chance that you are right and it's no longer necessary. I just feel that it should be tested with the Xamarin scenario since it doesn't use the same linker steps. |
I will verify this with Xamarin and post the update. |
We should update the docs at https://github.com/dotnet/samples/tree/main/core/nativeaot/NativeLibrary#building-static-libraries once this is merged. |
|
Verified that this change does not break Xamarin integration. |
Thanks for verifying. I checked that the runtime packs contain the .o files, so we should be good 👍 |
Undoes workaround from dotnet/runtimelab#270. Since bootstrapper no longer ships as a static library (as of #74623 it's an object file instead), we should no longer need this hack to force linker into looking at the archive.
Cc @dotnet/ilc-contrib