[PATCH v2] Add __libdw_getdieranges

2024-02-27 Thread Aaron Merey
__libdw_getdieranges builds an aranges list by iterating over each CU and recording each address range. This function is an alternative to dwarf_getaranges. dwarf_getaranges attempts to read address ranges from .debug_aranges, which might be absent or incomplete. This patch replaces dwarf_getara

Re: [PATCH] readelf: Use unsigned loop variables in handle_verneed and handle_verdef

2024-02-27 Thread Mark Wielaard
On Wed, 2024-02-21 at 22:19 +0100, Mark Wielaard wrote: > Prevent signed underflow by changing loop variables to unsigned and > doing count checks before decrementing. This isn't really a bug, but > prevents UB detected by ubsan on fuzzed input. The bad (fuzzed) input > data does get detected anywa

Re: [PATCH] libebl: ebl_object_note print 32bit annobin address ranges correctly

2024-02-27 Thread Mark Wielaard
Hi, On Wed, 2024-02-21 at 21:59 +0100, Mark Wielaard wrote: > Annobin address ranges were always printed as if they were 64bit wide > because addr_size was set to twice the size. This was done because the > note description size should contain two addresses. Fix this by setting > the address size

Re: [PATCH] Add __libdw_getdieranges

2024-02-27 Thread Mark Wielaard
Hi Aaron, On Mon, 2024-02-26 at 10:40 -0500, Aaron Merey wrote: > __libdw_getdieranges builds an aranges list by iterating over CUs and > recording each address range. > > __libdw_getdieranges provides an alternative to relying on .debug_aranges > for address ranges, since this section might be a

Sourceware infrastructure updates for Q1 2024

2024-02-27 Thread Mark Wielaard
Sourceware infrastructure community updates for Q1 2024 A summary of news about Sourceware, the Free Software hosting project for core toolchain and developer tools, from the last 3 months. - Sourceware now has an official donation page - StarFive VisionFive-2 RISC-V boards for builder.sourceware