authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-11-04 18:43:07+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-11-05 10:15:01+01:00
log9618fdc8a2409e56999e16dec59034cf511872e4
tree5186e86a08412f494e8ceb0ce381d15c237ac8ef
parent83d89a05b7670c5c25d4f0f717ac5168a9cb6557

coff: circumvent stage1 inference problems


1 files changed, 1 insertions(+), 1 deletions(-)

src/link/Coff.zig+1-1
...@@ -2181,7 +2181,7 @@ pub fn getEntryPoint(self: Coff) ?SymbolWithLoc {...@@ -2181,7 +2181,7 @@ pub fn getEntryPoint(self: Coff) ?SymbolWithLoc {
2181pub fn getImageBase(self: Coff) u64 {2181pub fn getImageBase(self: Coff) u64 {
2182 const image_base: u64 = self.base.options.image_base_override orelse switch (self.base.options.output_mode) {2182 const image_base: u64 = self.base.options.image_base_override orelse switch (self.base.options.output_mode) {
2183 .Exe => switch (self.base.options.target.cpu.arch) {2183 .Exe => switch (self.base.options.target.cpu.arch) {
2184 .aarch64 => 0x140000000,2184 .aarch64 => @as(u64, 0x140000000),
2185 .x86_64, .i386 => 0x400000,2185 .x86_64, .i386 => 0x400000,
2186 else => unreachable, // unsupported target architecture2186 else => unreachable, // unsupported target architecture
2187 },2187 },