You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Malformed Wasm binaries with @extern's std.builtin.GlobalLinkage #11505
arch-wasm32-bit and 64-bit WebAssemblybugObserved behavior contradicts documented or intended behaviorfrontendTokenization, parsing, AstGen, Sema, and Liveness.
Thanks to #14102 this now generates the proper undefined symbol 'a' linker error as it does with other platforms such as ELF/MachO. When forced with --import-symbols it does however generate a proper Wasm binary now:
> wasm-validate x.wasm
>$?
0
Note this imports a function pointer, not a function symbol, and therefore will not generate an import entry in the WebAssembly module.
arch-wasm32-bit and 64-bit WebAssemblybugObserved behavior contradicts documented or intended behaviorfrontendTokenization, parsing, AstGen, Sema, and Liveness.
Activity
Luukdegram commentedon Jan 2, 2023
Thanks to #14102 this now generates the proper
undefined symbol 'a'linker error as it does with other platforms such as ELF/MachO. When forced with--import-symbolsit does however generate a proper Wasm binary now:Note this imports a function pointer, not a function symbol, and therefore will not generate an
importentry in the WebAssembly module.