Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@vargaz
Copy link
Contributor

@vargaz vargaz commented Sep 24, 2020

Fixes #20417.

… avoid duplicate symbol

errors during static linking.

Fixes mono#20417.
@lambdageek
Copy link
Member

lambdageek commented Sep 24, 2020

Is the code in the wrappers identical? Can we make them linkonce_odr symbols instead? Although I'm not sure how we would do that with non-LLVM AOT if it needs this, too.

@CoffeeFlux
Copy link
Contributor

Also, is this going to be a nontrivial size increase if we're doing this for every wrapper?

@vargaz
Copy link
Contributor Author

vargaz commented Sep 24, 2020

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.

@vargaz
Copy link
Contributor Author

vargaz commented Sep 24, 2020

It will lead to a size increase, but only if the interpreter is enabled.

@lambdageek
Copy link
Member

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.

Is the naming change going to interfere with the dedup pass on platforms that use it?

It will lead to a size increase, but only if the interpreter is enabled.

We should make an issue to revisit this if there will be situations where we'll run the interpreter together with AOT on ios

@vargaz
Copy link
Contributor Author

vargaz commented Sep 24, 2020

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.

Is the naming change going to interfere with the dedup pass on platforms that use it?
No.

It will lead to a size increase, but only if the interpreter is enabled.

We should make an issue to revisit this if there will be situations where we'll run the interpreter together with AOT on ios

@vargaz
Copy link
Contributor Author

vargaz commented Sep 25, 2020

@monojenkins build failed

@vargaz vargaz merged commit bf5df0e into mono:master Sep 26, 2020
@vargaz vargaz deleted the fix-20417 branch September 26, 2020 01:50
@imhameed
Copy link
Contributor

@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.

@lambdageek
Copy link
Member

@imhameed I think it's ok to backport

@mono mono deleted a comment from github-actions bot Nov 15, 2021
@mono mono deleted a comment from github-actions bot Nov 15, 2021
@imhameed
Copy link
Contributor

/backport to 2020-02

@github-actions
Copy link
Contributor

Started backporting to 2020-02: https://github.com/mono/mono/actions/runs/1463343749

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Native linking failed, duplicate symbol: "_aot_wrapper_gsharedvt_out_sig ......

4 participants