From 4ac5fb7fe6b9fcb65ed74af3185201da9070e60c Mon Sep 17 00:00:00 2001 From: Evan Haas Date: Mon, 19 Aug 2024 10:20:20 -0700 Subject: [PATCH] zig update: toElfMachine moved from Arch to Target Fixes #754 --- src/backend/Object/Elf.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/Object/Elf.zig b/src/backend/Object/Elf.zig index a1483081..2a303d34 100644 --- a/src/backend/Object/Elf.zig +++ b/src/backend/Object/Elf.zig @@ -199,7 +199,7 @@ pub fn finish(elf: *Elf, file: std.fs.File) !void { const elf_header = std.elf.Elf64_Ehdr{ .e_ident = .{ 0x7F, 'E', 'L', 'F', 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, .e_type = std.elf.ET.REL, // we only produce relocatables - .e_machine = elf.obj.target.cpu.arch.toElfMachine(), + .e_machine = elf.obj.target.toElfMachine(), .e_version = 1, .e_entry = 0, // linker will handle this .e_phoff = 0, // no program header