From edabcf61927f9699f9b869f304e9aed97f2c4a47 Mon Sep 17 00:00:00 2001 From: Fausto Ribeiro Date: Mon, 3 Mar 2025 09:15:52 -0300 Subject: [PATCH] std.DynLib: fix proper type of chain_ptr on GnuHashSection32 Type is correct on GnuHashSection64 but not on 32 bit version. Change it so use of DynLib on 32-bit archs compiles. --- lib/std/dynamic_library.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/dynamic_library.zig b/lib/std/dynamic_library.zig index fe1ad63e3a..4b1faa87ba 100644 --- a/lib/std/dynamic_library.zig +++ b/lib/std/dynamic_library.zig @@ -397,7 +397,7 @@ pub const ElfDynLib = struct { const bloom_ptr: [*]u32 = @ptrFromInt(bloom_offset); const buckets_ptr: [*]u32 = @ptrFromInt(buckets_offset); - const chain_ptr: [*]u32 = @ptrFromInt(chain_offset); + const chain_ptr: [*]elf.gnu_hash.ChainEntry = @ptrFromInt(chain_offset); return .{ .symoffset = header.symoffset,