aboutsummaryrefslogtreecommitdiff
path: root/src/link
diff options
context:
space:
mode:
authorkcbanner <kcbanner@gmail.com>2023-03-02 22:15:31 -0500
committerkcbanner <kcbanner@gmail.com>2023-03-25 16:26:48 -0400
commit113f80bcf793b2841635d136e561bcc0bbe89086 (patch)
treec72baba10ceab70b4f5fc23e6cb99261347ba5a6 /src/link
parent37f6f7990e882ac9869513cf920f8cd0c4850039 (diff)
downloadzig-113f80bcf793b2841635d136e561bcc0bbe89086.tar.gz
zig-113f80bcf793b2841635d136e561bcc0bbe89086.zip
coff: change dynamicbase to default to true (to match lld), change it to pass the negation to lld, and add --no-dynamicbase
build: expose linker_dynamicbase on CompileStep and map it to emit --no-dynamicbase
Diffstat (limited to 'src/link')
-rw-r--r--src/link/Coff/lld.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/link/Coff/lld.zig b/src/link/Coff/lld.zig
index c308ff5989..358c905b2c 100644
--- a/src/link/Coff/lld.zig
+++ b/src/link/Coff/lld.zig
@@ -223,8 +223,8 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod
if (self.base.options.nxcompat) {
try argv.append("-nxcompat");
}
- if (self.base.options.dynamicbase) {
- try argv.append("-dynamicbase");
+ if (!self.base.options.dynamicbase) {
+ try argv.append("-dynamicbase:NO");
}
try argv.append(try allocPrint(arena, "-OUT:{s}", .{full_out_path}));