| ... | @@ -3535,11 +3535,8 @@ fn linkWithZld(wasm: *Wasm, arena: Allocator, prog_node: *std.Progress.Node) lin | ... | @@ -3535,11 +3535,8 @@ fn linkWithZld(wasm: *Wasm, arena: Allocator, prog_node: *std.Progress.Node) lin |
| 3535 | man.hash.addOptional(wasm.initial_memory); | 3535 | man.hash.addOptional(wasm.initial_memory); |
| 3536 | man.hash.addOptional(wasm.max_memory); | 3536 | man.hash.addOptional(wasm.max_memory); |
| 3537 | man.hash.addOptional(wasm.global_base); | 3537 | man.hash.addOptional(wasm.global_base); |
| 3538 | man.hash.add(wasm.export_symbol_names.len); | 3538 | man.hash.addListOfBytes(wasm.export_symbol_names); |
| 3539 | // strip does not need to go into the linker hash because it is part of the hash namespace | 3539 | // strip does not need to go into the linker hash because it is part of the hash namespace |
| 3540 | for (wasm.export_symbol_names) |symbol_name| { | | |
| 3541 | man.hash.addBytes(symbol_name); | | |
| 3542 | } | | |
| 3543 | | 3540 | |
| 3544 | // We don't actually care whether it's a cache hit or miss; we just need the digest and the lock. | 3541 | // We don't actually care whether it's a cache hit or miss; we just need the digest and the lock. |
| 3545 | _ = try man.hit(); | 3542 | _ = try man.hit(); |
| ... | @@ -4605,11 +4602,8 @@ fn linkWithLLD(wasm: *Wasm, arena: Allocator, prog_node: *std.Progress.Node) !vo | ... | @@ -4605,11 +4602,8 @@ fn linkWithLLD(wasm: *Wasm, arena: Allocator, prog_node: *std.Progress.Node) !vo |
| 4605 | man.hash.addOptional(wasm.max_memory); | 4602 | man.hash.addOptional(wasm.max_memory); |
| 4606 | man.hash.add(shared_memory); | 4603 | man.hash.add(shared_memory); |
| 4607 | man.hash.addOptional(wasm.global_base); | 4604 | man.hash.addOptional(wasm.global_base); |
| 4608 | man.hash.add(wasm.export_symbol_names.len); | 4605 | man.hash.addListOfBytes(wasm.export_symbol_names); |
| 4609 | // strip does not need to go into the linker hash because it is part of the hash namespace | 4606 | // strip does not need to go into the linker hash because it is part of the hash namespace |
| 4610 | for (wasm.export_symbol_names) |symbol_name| { | | |
| 4611 | man.hash.addBytes(symbol_name); | | |
| 4612 | } | | |
| 4613 | | 4607 | |
| 4614 | // We don't actually care whether it's a cache hit or miss; we just need the digest and the lock. | 4608 | // We don't actually care whether it's a cache hit or miss; we just need the digest and the lock. |
| 4615 | _ = try man.hit(); | 4609 | _ = try man.hit(); |