Commit 338730d2fa

Alex Rønne Petersen <alex@alexrp.com>
2024-08-21 14:24:40
link.Coff: Set default image base correctly for thumb.
1 parent 6d15dc1
Changed files (1)
src
src/link/Coff.zig
@@ -276,7 +276,7 @@ pub fn createEmpty(
         .image_base = options.image_base orelse switch (output_mode) {
             .Exe => switch (target.cpu.arch) {
                 .aarch64 => 0x140000000,
-                .x86_64, .x86 => 0x400000,
+                .thumb, .x86_64, .x86 => 0x400000,
                 else => unreachable,
             },
             .Lib => 0x10000000,