Wasm: remove implicit __heap_base/__data_end exports

This commit is contained in:
daxpedda
2026-05-05 07:21:22 +02:00
parent cb40c25f6a
commit fbb5809996
@@ -1464,14 +1464,6 @@ fn export_symbols(
for (sym, _) in symbols {
self.link_args(&["--export", sym]);
}
// LLD will hide these otherwise-internal symbols since it only exports
// symbols explicitly passed via the `--export` flags above and hides all
// others. Various bits and pieces of wasm32-unknown-unknown tooling use
// this, so be sure these symbols make their way out of the linker as well.
if matches!(self.sess.target.os, Os::Unknown | Os::None) {
self.link_args(&["--export=__heap_base", "--export=__data_end"]);
}
}
fn windows_subsystem(&mut self, _subsystem: WindowsSubsystemKind) {}