-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[aot] Prepend the assembly name to the names of gsharedvt wrappers to avoid duplicate symbol errors during static linking. #20430
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
Conversation
… avoid duplicate symbol errors during static linking. Fixes mono#20417.
|
Is the code in the wrappers identical? Can we make them |
|
Also, is this going to be a nontrivial size increase if we're doing this for every wrapper? |
|
Making them linkonce is kinda complicated, we have a dedup pass instead which only emits them once into a dummy assembly, but that is not used on ios right now. |
|
It will lead to a size increase, but only if the interpreter is enabled. |
Is the naming change going to interfere with the dedup pass on platforms that use it?
We should make an issue to revisit this if there will be situations where we'll run the interpreter together with AOT on ios |
|
|
@monojenkins build failed |
|
@vargaz @lambdageek @marek-safar Any objections to backporting this to 2020-02? I installed a fresh copy of VSMac and Mono recently and #20417 still happens. |
|
@imhameed I think it's ok to backport |
|
/backport to 2020-02 |
|
Started backporting to 2020-02: https://github.com/mono/mono/actions/runs/1463343749 |
Fixes #20417.