diff --git a/crates/backend/src/codegen.rs b/crates/backend/src/codegen.rs index 0e05685b..e6f30b51 100644 --- a/crates/backend/src/codegen.rs +++ b/crates/backend/src/codegen.rs @@ -76,7 +76,7 @@ impl ToTokens for ast::Program { (quote! { #[allow(non_upper_case_globals)] - #[link_section = "__wasm_bindgen_unstable"] + #[link_section = "__wasm_bindgen,unstable"] #[doc(hidden)] pub static #generated_static_name: [u8; #generated_static_length] = *#generated_static_value; diff --git a/crates/cli-support/src/lib.rs b/crates/cli-support/src/lib.rs index a0f184ab..1ed457f7 100644 --- a/crates/cli-support/src/lib.rs +++ b/crates/cli-support/src/lib.rs @@ -287,7 +287,7 @@ fn extract_programs(module: &mut Module) -> Result, Error> Section::Custom(ref s) => s, _ => continue, }; - if custom.name() != "__wasm_bindgen_unstable" { + if custom.name() != "__wasm_bindgen,unstable" { continue; } to_remove.push(i);