| ... | @@ -37,12 +37,12 @@ const Coff = struct { | ... | @@ -37,12 +37,12 @@ const Coff = struct { |
| 37 | .Exe => switch (target.cpu.arch) { | 37 | .Exe => switch (target.cpu.arch) { |
| 38 | .aarch64, .x86_64 => 0x140000000, | 38 | .aarch64, .x86_64 => 0x140000000, |
| 39 | .thumb, .x86 => 0x400000, | 39 | .thumb, .x86 => 0x400000, |
| 40 | else => unreachable, | 40 | else => return error.UnsupportedCoffArchitecture, |
| 41 | }, | 41 | }, |
| 42 | .Lib => switch (target.cpu.arch) { | 42 | .Lib => switch (target.cpu.arch) { |
| 43 | .aarch64, .x86_64 => 0x180000000, | 43 | .aarch64, .x86_64 => 0x180000000, |
| 44 | .thumb, .x86 => 0x10000000, | 44 | .thumb, .x86 => 0x10000000, |
| 45 | else => unreachable, | 45 | else => return error.UnsupportedCoffArchitecture, |
| 46 | }, | 46 | }, |
| 47 | .Obj => 0, | 47 | .Obj => 0, |
| 48 | }, | 48 | }, |