Uh oh!
There was an error while loading. Please reload this page.
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.
ghost
commented
Jul 21, 2023
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
|
filipnavara
commented
Jul 21, 2023
I'm pretty sure that the Xamarin integration relies on this. We definitely need to double-check before merging. |
MichalStrehovsky
commented
Jul 21, 2023
I suspected that but a search in the dotnet organization on github found no hits for that outside this repo and samples repo. |
filipnavara
commented
Jul 21, 2023
It's not about a hit for the function name ( |
MichalStrehovsky
commented
Jul 21, 2023
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. |
filipnavara
commented
Jul 21, 2023
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. |
ivanpovazan
commented
Jul 21, 2023
I will verify this with Xamarin and post the update. |
jkotas
commented
Jul 23, 2023
We should update the docs at https://github.com/dotnet/samples/tree/main/core/nativeaot/NativeLibrary#building-static-libraries once this is merged. |
MichalStrehovsky
commented
Jul 25, 2023
|
ivanpovazan
commented
Jul 25, 2023
Verified that this change does not break Xamarin integration. |
filipnavara
commented
Jul 25, 2023
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