diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-12-12 14:12:45 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-01-01 17:51:19 -0700 |
| commit | 3b6cb257dfbcfe7217cdb00819615d1cf1e6b89c (patch) | |
| tree | 4431c016e34bbda2600a0a582064a1ba932ffe9e /src/link/Coff | |
| parent | 9a48a5ab0784ae9744c72cfcc6d7ad9b2cea6a9c (diff) | |
| download | zig-3b6cb257dfbcfe7217cdb00819615d1cf1e6b89c.tar.gz zig-3b6cb257dfbcfe7217cdb00819615d1cf1e6b89c.zip | |
update image_base references
Diffstat (limited to 'src/link/Coff')
| -rw-r--r-- | src/link/Coff/lld.zig | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/link/Coff/lld.zig b/src/link/Coff/lld.zig index 918a7004c1..a321d28fb3 100644 --- a/src/link/Coff/lld.zig +++ b/src/link/Coff/lld.zig @@ -81,7 +81,7 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod try man.addOptionalFile(module_obj_path); man.hash.addOptionalBytes(self.base.options.entry); man.hash.add(self.base.stack_size); - man.hash.addOptional(self.base.options.image_base_override); + man.hash.addOptional(self.image_base); man.hash.addListOfBytes(self.base.options.lib_dirs); man.hash.add(self.base.options.skip_linker_dependencies); if (self.base.options.link_libc) { @@ -195,9 +195,7 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod if (self.base.comp.config.output_mode == .Exe) { try argv.append(try allocPrint(arena, "-STACK:{d}", .{self.base.stack_size})); } - if (self.base.options.image_base_override) |image_base| { - try argv.append(try std.fmt.allocPrint(arena, "-BASE:{d}", .{image_base})); - } + try argv.append(try std.fmt.allocPrint(arena, "-BASE:{d}", .{self.image_base})); if (target.cpu.arch == .x86) { try argv.append("-MACHINE:X86"); |
