aboutsummaryrefslogtreecommitdiff
path: root/src/link/Elf
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2024-03-09 18:55:52 +0100
committerJakub Konka <kubkon@jakubkonka.com>2024-03-09 18:55:52 +0100
commit229468b7a9a47c08a90684419a5c210ff2af2b4a (patch)
treeec96b393bc5e73ae0bfd6da12fde66887e5d24f1 /src/link/Elf
parent859f9a22c4ac28a4e6b003b6e07c2c9912fcb074 (diff)
downloadzig-229468b7a9a47c08a90684419a5c210ff2af2b4a.tar.gz
zig-229468b7a9a47c08a90684419a5c210ff2af2b4a.zip
elf+aarch64: fix 32bit build
Diffstat (limited to 'src/link/Elf')
-rw-r--r--src/link/Elf/Atom.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/Elf/Atom.zig b/src/link/Elf/Atom.zig
index 4841501aa6..eb78f10068 100644
--- a/src/link/Elf/Atom.zig
+++ b/src/link/Elf/Atom.zig
@@ -1687,7 +1687,7 @@ const aarch64 = struct {
const r_type: elf.R_AARCH64 = @enumFromInt(rel.r_type());
const r_offset = std.math.cast(usize, rel.r_offset) orelse return error.Overflow;
const cwriter = stream.writer();
- const code = code_buffer[rel.r_offset..][0..4];
+ const code = code_buffer[r_offset..][0..4];
const file_ptr = atom.file(elf_file).?;
const P, const A, const S, const GOT, const G, const TP, const DTP, const ZIG_GOT = args;