From 5702acc510d616aff43bfe37b0d0764d2cba899a Mon Sep 17 00:00:00 2001 From: Charles-Xavier Roy Date: Sat, 29 Nov 2025 11:58:16 -0500 Subject: [PATCH] Fix Elf32_Sym: change st_shndx from u32 to u16 The st_shndx field in Elf32_Sym was incorrectly defined as u32 instead of u16. --- src/symbol.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/symbol.rs b/src/symbol.rs index 4be8855..fd98e24 100644 --- a/src/symbol.rs +++ b/src/symbol.rs @@ -17,7 +17,7 @@ pub struct Elf32_Sym { pub st_size: u32, pub st_info: u8, pub st_other: u8, - pub st_shndx: u32, + pub st_shndx: u16, } /// C-style 64-bit ELF Symbol definition