Re: [PATCH v3] xtensa: add R_XTENSA_PDIFF_ULEB128 for DWARF uleb128 diffs

Project / Subsystem

binutils / xtensa

Date

2026-08-31

Proposer

Alexey Lapshin <alexey.lapshin@espressif.com>

Source type

public_inbox

Consensus

Proposed

Sentiment

7/10

Technical tradeoffs

  • • Enables linker relaxation for functions with DWARF 5 debug info.
  • • Introduces a new relocation type, increasing complexity.

All attributes

project
binutils
subsystem
xtensa
patch_id
—
discussion_id
d7cf1d0c5b4096889659c0016b210febbdfe38eb.camel@espressif.com
source_type
public_inbox
title
Re: [PATCH v3] xtensa: add R_XTENSA_PDIFF_ULEB128 for DWARF uleb128 diffs
headline
xtensa: add R_XTENSA_PDIFF_ULEB128 for DWARF uleb128 diffs
tldr
Introduces R_XTENSA_PDIFF_ULEB128 relocation for DWARF 5 location/range lists.
proposer
Alexey Lapshin <alexey.lapshin@espressif.com>
consensus
Proposed
outcome
proposed
sentiment_score
7
technical_tradeoffs
  • • Enables linker relaxation for functions with DWARF 5 debug info.
  • • Introduces a new relocation type, increasing complexity.
series_id
—
series_role
standalone
series_parts
[]
tags
  • • binutils
  • • xtensa
  • • dwarf
  • • debugging
  • • linker
bugzilla_url
—
date
2026-08-31T00:00:00.000Z

Re: [PATCH v3] xtensa: add R_XTENSA_PDIFF_ULEB128 for DWARF uleb128 diffs

This patch introduces a new relocation type, R_XTENSA_PDIFF_ULEB128, to handle differences in DWARF 5 location and range lists that are encoded as uleb128. Previously, such differences would force linker relaxation to be disabled for entire functions containing DWARF 5 debug info. This new relocation allows relaxation to continue by encoding these differences more efficiently.