commit 338730d2fa1189dc9fad53bbf7be77352af83b2d (tree)
parent 6d15dc1ab8bc04a5768fa48c14d82d7e6536561b
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Wed, 21 Aug 2024 14:24:40 +0200
link.Coff: Set default image base correctly for thumb.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/link/Coff.zig b/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,