1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -1180,18 +1180,12 @@ impl<'a> WasmLd<'a> {
1180
1180
// sharing memory and instantiating the module multiple times. As a
1181
1181
// result if it were exported then we'd just have no sharing.
1182
1182
//
1183
- // * `--export=__wasm_init_memory` - when using `--passive-segments` the
1184
- // linker will synthesize this function, and so we need to make sure
1185
- // that our usage of `--export` below won't accidentally cause this
1186
- // function to get deleted.
1187
- //
1188
1183
// * `--export=*tls*` - when `#[thread_local]` symbols are used these
1189
1184
// symbols are how the TLS segments are initialized and configured.
1190
1185
if sess. target_features . contains ( & sym:: atomics) {
1191
1186
cmd. arg ( "--shared-memory" ) ;
1192
1187
cmd. arg ( "--max-memory=1073741824" ) ;
1193
1188
cmd. arg ( "--import-memory" ) ;
1194
- cmd. arg ( "--export=__wasm_init_memory" ) ;
1195
1189
cmd. arg ( "--export=__wasm_init_tls" ) ;
1196
1190
cmd. arg ( "--export=__tls_size" ) ;
1197
1191
cmd. arg ( "--export=__tls_align" ) ;
0 commit comments