binutils Newspaper
OCTOBER 6, 2026
xtensa — Proposed

xtensa: add R_XTENSA_PDIFF_ULEB128 for DWARF uleb128 diffs

A review is requested for a patch adding a new relocation type for Xtensa DWARF debugging information.

Alexey Lapshin is gently pinging for a review of a patch that adds the R_XTENSA_PDIFF_ULEB128 relocation type, intended for DWARF uleb128 diffs on Xtensa architectures. Without immediate review, they request that reloc type 63 be reserved for this purpose.

In the Thread 1 participant
  1. Alexey Lapshin <alexey.lapshin@espressif.com> proposer

    Requests a review for a patch adding a new Xtensa relocation type and asks to reserve a reloc type number.

    “Gentle ping. A review would be much appreciated. If review needs more time, could we at least reserve reloc type 63 for R_XTENSA_PDIFF_ULEB128?”

In Details

This patch introduces a new ELF relocation type, R_XTENSA_PDIFF_ULEB128, for the Xtensa architecture. This relocation is specifically for handling differences in unsigned LEB128 encoded values within DWARF debugging information. The author is seeking a review and proposing a reservation for the relocation type number.

For Context
Xtensa
A configurable and extensible processor architecture used in various embedded systems, particularly by Tensilica (now part of Cadence).
R_XTENSA_PDIFF_ULEB128
A custom ELF relocation type proposed for the Xtensa architecture, designed to calculate differences between unsigned LEB128 encoded values.
DWARF
A debugging data format used by many compilers and debuggers to represent information about variables, types, and code structure.
uleb128
Unsigned Little-Endian Base 128. A variable-length encoding for unsigned integers, commonly used in DWARF and other formats.
relocation
A process performed by the linker to resolve symbol references and adjust addresses in object files and executables.
linker
A program that combines object files and libraries into an executable program or another object file.
Filed Under: xtensarelocationdwarfdebuggingpatch