| author | |
| committer | |
| log | e37c55bae0f154ca2e5ce375fe695f707853fce3 |
| tree | 518b48097844139515b73100e341ab42ab89bacd |
| parent | 93545fe74fadf92d07e19ca81f46db9bf800a993 |
3 files changed, 11 insertions(+), 0 deletions(-)
src/link/Coff.zig+1| ... | ... | @@ -949,6 +949,7 @@ fn linkWithLLD(self: *Coff, comp: *Compilation) !void { |
| 949 | 949 | man.hash.add(self.base.options.tsaware); |
| 950 | 950 | man.hash.add(self.base.options.nxcompat); |
| 951 | 951 | man.hash.add(self.base.options.dynamicbase); |
| 952 | // strip does not need to go into the linker hash because it is part of the hash namespace | |
| 952 | 953 | man.hash.addOptional(self.base.options.major_subsystem_version); |
| 953 | 954 | man.hash.addOptional(self.base.options.minor_subsystem_version); |
| 954 | 955 |
src/link/Elf.zig+5| ... | ... | @@ -1337,6 +1337,7 @@ fn linkWithLLD(self: *Elf, comp: *Compilation) !void { |
| 1337 | 1337 | man.hash.add(self.base.options.z_noexecstack); |
| 1338 | 1338 | man.hash.add(self.base.options.z_now); |
| 1339 | 1339 | man.hash.add(self.base.options.z_relro); |
| 1340 | // strip does not need to go into the linker hash because it is part of the hash namespace | |
| 1340 | 1341 | if (self.base.options.link_libc) { |
| 1341 | 1342 | man.hash.add(self.base.options.libc_installation != null); |
| 1342 | 1343 | if (self.base.options.libc_installation) |libc_installation| { |
| ... | ... | @@ -1477,6 +1478,10 @@ fn linkWithLLD(self: *Elf, comp: *Compilation) !void { |
| 1477 | 1478 | try argv.append("--export-dynamic"); |
| 1478 | 1479 | } |
| 1479 | 1480 | |
| 1481 | if (self.base.options.strip) { | |
| 1482 | try argv.append("-s"); | |
| 1483 | } | |
| 1484 | ||
| 1480 | 1485 | if (self.base.options.z_nodelete) { |
| 1481 | 1486 | try argv.append("-z"); |
| 1482 | 1487 | try argv.append("nodelete"); |
src/link/Wasm.zig+5| ... | ... | @@ -1028,6 +1028,7 @@ fn linkWithLLD(self: *Wasm, comp: *Compilation) !void { |
| 1028 | 1028 | man.hash.addOptional(self.base.options.max_memory); |
| 1029 | 1029 | man.hash.addOptional(self.base.options.global_base); |
| 1030 | 1030 | man.hash.add(self.base.options.export_symbol_names.len); |
| 1031 | // strip does not need to go into the linker hash because it is part of the hash namespace | |
| 1031 | 1032 | for (self.base.options.export_symbol_names) |symbol_name| { |
| 1032 | 1033 | man.hash.addBytes(symbol_name); |
| 1033 | 1034 | } |
| ... | ... | @@ -1107,6 +1108,10 @@ fn linkWithLLD(self: *Wasm, comp: *Compilation) !void { |
| 1107 | 1108 | try argv.append("--import-memory"); |
| 1108 | 1109 | } |
| 1109 | 1110 | |
| 1111 | if (self.base.options.strip) { | |
| 1112 | try argv.append("-s"); | |
| 1113 | } | |
| 1114 | ||
| 1110 | 1115 | if (self.base.options.initial_memory) |initial_memory| { |
| 1111 | 1116 | const arg = try std.fmt.allocPrint(arena, "--initial-memory={d}", .{initial_memory}); |
| 1112 | 1117 | try argv.append(arg); |