authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-03-09 18:55:52+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-03-09 18:55:52+01:00
log229468b7a9a47c08a90684419a5c210ff2af2b4a
treeec96b393bc5e73ae0bfd6da12fde66887e5d24f1
parent859f9a22c4ac28a4e6b003b6e07c2c9912fcb074

elf+aarch64: fix 32bit build


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

src/link/Elf/Atom.zig+1-1
...@@ -1687,7 +1687,7 @@ const aarch64 = struct {...@@ -1687,7 +1687,7 @@ const aarch64 = struct {
1687 const r_type: elf.R_AARCH64 = @enumFromInt(rel.r_type());1687 const r_type: elf.R_AARCH64 = @enumFromInt(rel.r_type());
1688 const r_offset = std.math.cast(usize, rel.r_offset) orelse return error.Overflow;1688 const r_offset = std.math.cast(usize, rel.r_offset) orelse return error.Overflow;
1689 const cwriter = stream.writer();1689 const cwriter = stream.writer();
1690 const code = code_buffer[rel.r_offset..][0..4];1690 const code = code_buffer[r_offset..][0..4];
1691 const file_ptr = atom.file(elf_file).?;1691 const file_ptr = atom.file(elf_file).?;
16921692
1693 const P, const A, const S, const GOT, const G, const TP, const DTP, const ZIG_GOT = args;1693 const P, const A, const S, const GOT, const G, const TP, const DTP, const ZIG_GOT = args;