authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-11-05 10:35:04+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-11-05 10:35:04+01:00
log165ae04a03206af34707b5505dc042338ce4731e
treeb2517ebf4369ffb2c078b4ceced49a3f83e33c4a
parent59fa0499c977b27450bc844ef30d7a8e83aeb20a

coff: use .x86 instead of .i386


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

src/link/Coff.zig+2-2
...@@ -1004,7 +1004,7 @@ fn resolveRelocs(self: *Coff, atom: *Atom) !void {...@@ -1004,7 +1004,7 @@ fn resolveRelocs(self: *Coff, atom: *Atom) !void {
1004 }1004 }
1005 },1005 },
10061006
1007 .x86_64, .i386 => {1007 .x86_64, .x86 => {
1008 switch (reloc.@"type") {1008 switch (reloc.@"type") {
1009 .got_page => unreachable,1009 .got_page => unreachable,
1010 .got_pageoff => unreachable,1010 .got_pageoff => unreachable,
...@@ -2182,7 +2182,7 @@ pub fn getImageBase(self: Coff) u64 {...@@ -2182,7 +2182,7 @@ pub 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 => @as(u64, 0x140000000),2184 .aarch64 => @as(u64, 0x140000000),
2185 .x86_64, .i386 => 0x400000,2185 .x86_64, .x86 => 0x400000,
2186 else => unreachable, // unsupported target architecture2186 else => unreachable, // unsupported target architecture
2187 },2187 },
2188 .Lib => 0x10000000,2188 .Lib => 0x10000000,