Re: [PATCH] gendwarfksyms: Fix build on 32-bit hosts

From: Sami Tolvanen

Date: Tue Nov 25 2025 - 15:14:30 EST


On Tue, Nov 18, 2025 at 8:18 AM Michal Suchánek <msuchanek@xxxxxxx> wrote:
>
> Hello,
>
> On Mon, Nov 17, 2025 at 08:38:07PM +0000, Sami Tolvanen wrote:
> > We have interchangeably used unsigned long for some of the types
> > defined in elfutils, assuming they're always 64-bit. This obviously
> > fails when building gendwarfksyms on 32-bit hosts. Fix the types.
> >
> > Reported-by: Michal Suchánek <msuchanek@xxxxxxx>
> > Closes: https://lore.kernel.org/linux-modules/aRcxzPxtJblVSh1y@xxxxxxxxxxxxxxx/
> > Signed-off-by: Sami Tolvanen <samitolvanen@xxxxxxxxxx>
> > ---
> > scripts/gendwarfksyms/dwarf.c | 4 +++-
> > scripts/gendwarfksyms/symbols.c | 5 +++--
> > 2 files changed, 6 insertions(+), 3 deletions(-)
>
> with this patch gendwarfksyms builds on 32bit x86 and Arm.
>
> Tested-by: Michal Suchánek <msuchanek@xxxxxxx>

Great, thanks for testing! Daniel, do you want to take this fix
through the modules tree?

Sami