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 {
10041004 }
10051005 },
10061006
1007 .x86_64, .i386 => {
1007 .x86_64, .x86 => {
10081008 switch (reloc.@"type") {
10091009 .got_page => unreachable,
10101010 .got_pageoff => unreachable,
......@@ -2182,7 +2182,7 @@ pub fn getImageBase(self: Coff) u64 {
21822182 const image_base: u64 = self.base.options.image_base_override orelse switch (self.base.options.output_mode) {
21832183 .Exe => switch (self.base.options.target.cpu.arch) {
21842184 .aarch64 => @as(u64, 0x140000000),
2185 .x86_64, .i386 => 0x400000,
2185 .x86_64, .x86 => 0x400000,
21862186 else => unreachable, // unsupported target architecture
21872187 },
21882188 .Lib => 0x10000000,