diff --git a/src/main.zig b/src/main.zig index ba3085b72d60..23d1746aac76 100644 --- a/src/main.zig +++ b/src/main.zig @@ -2330,6 +2330,11 @@ fn buildOutputType( stack_size = parseStackSize(linker_args_it.nextOrFatal()); } else if (mem.eql(u8, arg, "--image-base")) { image_base = parseImageBase(linker_args_it.nextOrFatal()); + } else if (mem.eql(u8, arg, "--enable-auto-image-base") or + mem.eql(u8, arg, "-disable-auto-image-base") or + mem.eql(u8, arg, "--disable-auto-image-base") or + mem.eql(u8, arg, "-disable-auto-image-base")) { + // These are ignored by LLD, but are used by Libtool for MinGW triples. } else if (mem.eql(u8, arg, "-T") or mem.eql(u8, arg, "--script")) { linker_script = linker_args_it.nextOrFatal(); } else if (mem.eql(u8, arg, "--eh-frame-hdr")) {