authorgravatar for fausto.ribeiro@angstrom.com.brFausto Ribeiro <fausto.ribeiro@angstrom.com.br> 2025-03-03 09:15:52-03:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-03-03 20:01:05+01:00
logedabcf61927f9699f9b869f304e9aed97f2c4a47
treee08c149556330e7c497099e2068f9f31fe38f246
parent4fad60fd3a70d0b059ce92ce825faabc1d2ac2e8

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.

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

lib/std/dynamic_library.zig+1-1
...@@ -397,7 +397,7 @@ pub const ElfDynLib = struct {...@@ -397,7 +397,7 @@ pub const ElfDynLib = struct {
397397
398 const bloom_ptr: [*]u32 = @ptrFromInt(bloom_offset);398 const bloom_ptr: [*]u32 = @ptrFromInt(bloom_offset);
399 const buckets_ptr: [*]u32 = @ptrFromInt(buckets_offset);399 const buckets_ptr: [*]u32 = @ptrFromInt(buckets_offset);
400 const chain_ptr: [*]u32 = @ptrFromInt(chain_offset);400 const chain_ptr: [*]elf.gnu_hash.ChainEntry = @ptrFromInt(chain_offset);
401401
402 return .{402 return .{
403 .symoffset = header.symoffset,403 .symoffset = header.symoffset,