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 a suffix to the metadata section for component types #75

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

alexcrichton
Copy link
Member

This will help prevent clashes with any other world called "bindings" by ensuring that wasm-ld doesn't concatenate sections and corrupt the internal contents.

This will help prevent clashes with any other world called "bindings" by
ensuring that wasm-ld doesn't concatenate sections and corrupt the
internal contents.
@alexcrichton alexcrichton merged commit 8c5c76f into bytecodealliance:main Feb 23, 2024
5 checks passed
@alexcrichton alexcrichton deleted the section-suffix branch February 23, 2024 21:14
@dicej
Copy link

dicej commented Feb 23, 2024

BTW, I only ever tested --type-section-suffix with the C generator, so I don't know for a fact that it works with the Rust generator. I assume someone has, though?

@pchickey
Copy link
Collaborator

pchickey commented Feb 23, 2024

Alex added it to the Rust generator just the other day, and the spot check is in this diff: https://github.com/bytecodealliance/wasi/pull/75/files#diff-c030113407a164cbd1ad3500c613f59abd4346ba13ee5b653c56f393c937b0a8R15357 . (I signed off the wit-bindgen PR where he added it)

@alexcrichton
Copy link
Member Author

Ah yes indeed! I added the option to Rust in bytecodealliance/wit-bindgen#859 and tested that the unit test there didn't work when the option was omitted and then passed when the option was specified.

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.

3 participants