authorgravatar for luuk@degram.devLuuk de Gram <luuk@degram.dev> 2023-11-20 21:08:40+01:00
committergravatar for luuk@degram.devLuuk de Gram <luuk@degram.dev> 2023-11-28 15:47:07+01:00
logf7d4f72fd5e3e3026e395f43c5b2b2c3cb49fce2
treee1f18236a4a9d451374a2b47773503e1445050b1
parent6f7a9b31443debf3e6d2be645261372de1bc5877
signaturelock-open Commit is signed but in an unrecognized format.

wasm-linker: Only emit name of referenced symbols


1 files changed, 3 insertions(+), 0 deletions(-)

src/link/Wasm.zig+3
...@@ -4293,6 +4293,9 @@ fn emitNameSection(wasm: *Wasm, binary_bytes: *std.ArrayList(u8), arena: std.mem...@@ -4293,6 +4293,9 @@ fn emitNameSection(wasm: *Wasm, binary_bytes: *std.ArrayList(u8), arena: std.mem
42934293
4294 for (wasm.resolved_symbols.keys()) |sym_loc| {4294 for (wasm.resolved_symbols.keys()) |sym_loc| {
4295 const symbol = sym_loc.getSymbol(wasm).*;4295 const symbol = sym_loc.getSymbol(wasm).*;
4296 if (symbol.isDead()) {
4297 continue;
4298 }
4296 const name = sym_loc.getName(wasm);4299 const name = sym_loc.getName(wasm);
4297 switch (symbol.tag) {4300 switch (symbol.tag) {
4298 .function => {4301 .function => {