Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Sep 10, 2025

The currentModuleWeakSymbols global was being set the wrong time which would lead to the wrong set of symbols being used for a given dylib.

Also have another version of this change that removes the global completely but this one is simpler.

Fixes: #25214

@sbc100
Copy link
Collaborator Author

sbc100 commented Sep 10, 2025

I simplified the test case an converted it to C

@sbc100 sbc100 enabled auto-merge (squash) September 10, 2025 17:57
The `currentModuleWeakSymbols` global was being set the wrong time which
would lead to the wrong set of symbols being used for a given dylib.

Also have another version of this change that removes the global
completely but this one is simpler.

Fixes: emscripten-core#25214
@sbc100 sbc100 merged commit 420eda8 into emscripten-core:main Sep 10, 2025
31 checks passed
@sbc100 sbc100 deleted the fix_weak_imports branch September 10, 2025 19:25
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.

Using thread_local results in runtime linker error when using multiple SIDE_MODULES

2 participants