diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-08-21 14:24:40 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-08-28 03:08:10 +0200 |
| commit | 338730d2fa1189dc9fad53bbf7be77352af83b2d (patch) | |
| tree | c0208c1fcecf72dc63089c6b39eb05cfb5dc1b03 /src | |
| parent | 6d15dc1ab8bc04a5768fa48c14d82d7e6536561b (diff) | |
| download | zig-338730d2fa1189dc9fad53bbf7be77352af83b2d.tar.gz zig-338730d2fa1189dc9fad53bbf7be77352af83b2d.zip | |
link.Coff: Set default image base correctly for thumb.
Diffstat (limited to 'src')
| -rw-r--r-- | src/link/Coff.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/Coff.zig b/src/link/Coff.zig index fffa412f03..a03c3a2d3d 100644 --- 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, |
