binutils Newspaper
OCTOBER 6, 2026
binutils — Proposed

Fix xtensa-lx106-elf readelf dw5 test failure

Allow for uleb128 padding in binutils dw5 test for xtensa-lx106-elf.

This patch addresses a test failure in binutils for the xtensa-lx106-elf target when running readelf -wiaoRlL dw5. The failure is due to unexpected padding in uleb128 encoding within the debug information. The fix modifies the testsuite to accommodate this padding, ensuring the test passes.

For Context
uleb128
Unsigned Little Endian Base 128. A variable-length encoding used in DWARF for unsigned integers.
readelf
A utility that displays information about ELF files, including debugging information.
DW_AT_location
DWARF attribute indicating the location of a variable or expression.
.debug_info
DWARF section containing debugging information, such as variables, types, and functions.
.debug_loclists
DWARF section containing location lists, which specify the address ranges where a variable is valid.
.debug_rnglists
DWARF section containing range lists, used for various debugging information ranges.
Filed Under: binutilsxtensadebuggingtestsuite