link.Coff: Set default image base correctly for thumb.

This commit is contained in:
Alex Rønne Petersen 2024-08-21 14:24:40 +02:00
parent 6d15dc1ab8
commit 338730d2fa
No known key found for this signature in database

View File

@ -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,