[PATCH] [binutils] Handle implicit const in .debug_names

Project / Subsystem

binutils / binutils

Date

2026-05-22

Proposer

Tom de Vries <tdevries@suse.de>

Source type

public_inbox

Consensus

Proposed

Sentiment

/10

Technical tradeoffs

  • Adding support for new DWARF forms increases the complexity of readelf.
  • The patch may need to be updated if the DWARF standard evolves further.

All attributes

project
binutils
subsystem
binutils
patch_id
discussion_id
20260522121618.1460707-1-tdevries@suse.de
source_type
public_inbox
title
[PATCH] [binutils] Handle implicit const in .debug_names
headline
Handle implicit const in .debug_names
tldr
Readelf now supports DW_FORM_implicit_const in .debug_names sections, fixing errors when reading debug info for gdb test cases.
proposer
Tom de Vries <tdevries@suse.de>
consensus
Proposed
outcome
proposed
sentiment_score
technical_tradeoffs
  • Adding support for new DWARF forms increases the complexity of readelf.
  • The patch may need to be updated if the DWARF standard evolves further.
series_id
series_role
standalone
series_parts
[]
tags
  • binutils
  • readelf
  • dwarf
  • debuginfo
  • debug_names
bugzilla_url
date
2026-05-22T00:00:00.000Z

[PATCH] [binutils] Handle implicit const in .debug_names

This patch adds support for DW_FORM_implicit_const in the .debug_names section when using readelf. This fixes an issue where readelf would fail to read debug information for certain gdb test cases due to encountering this form in the abbreviation table. The patch modifies binutils/dwarf.c to handle the DW_FORM_implicit_const entry.