Skip to content

Conversation

@alexcrichton
Copy link
Member

This is an attempt to address #12217 which applies a similar workaround found in #11960 to this naked function as well. Effectively it looks like #[unsafe(naked)] is buggy to the point that the user of the function symbol must be #[inline(never)] and in the same module, otherwise it won't work correctly.

Closes #12217

This is an attempt to address bytecodealliance#12217 which applies a similar workaround
found in bytecodealliance#11960 to this naked function as well. Effectively it looks
like `#[unsafe(naked)]` is buggy to the point that the user of the
function symbol must be `#[inline(never)]` and in the same module,
otherwise it won't work correctly.

Closes bytecodealliance#12217
@alexcrichton alexcrichton requested a review from a team as a code owner January 6, 2026 05:22
@alexcrichton alexcrichton requested review from dicej and removed request for a team January 6, 2026 05:22
@github-actions github-actions bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label Jan 6, 2026
@alexcrichton alexcrichton added this pull request to the merge queue Jan 6, 2026
Merged via the queue into bytecodealliance:main with commit fe12d38 Jan 6, 2026
45 checks passed
@alexcrichton alexcrichton deleted the try-to-fix-symbol branch January 6, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wasmtime:api Related to the API of the `wasmtime` crate itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Undefined symbols for architecture x86_64

2 participants