Skip to content
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

Add symbol aliasing feature to wasm-ld to support SwiftPM testing mechanism #3707

Open
kateinoigakukun opened this issue Oct 13, 2021 · 0 comments

Comments

@kateinoigakukun
Copy link
Member

MachO and ELF linkers have features to rename symbols to another name.

e.g. for ld64

     -alias symbol_name alternate_symbol_name
                 Create an alias named alternate_symbol_name for the symbol symbol_name.  By default the alias symbol has global visibility.  This option was previous the -idef:indir option.

This feature is required in SwiftPM to link executable target with test target. Currently it's disabled for WASI because wasm-ld doesn't support it now. apple/swift-package-manager#3804

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

No branches or pull requests

1 participant