[PATCH v5] binutils/dwarf: Print embedded source, when available

Project / Subsystem

binutils / binutils/dwarf

Date

2026-05-16

Proposer

Will Hawkins <hawkinsw@obs.cr>

Source type

public_inbox

Consensus

Proposed

Sentiment

/10

Technical tradeoffs

  • Increased objdump complexity to support a new DWARFv5 feature.
  • Potential performance impact due to additional data processing in objdump.

All attributes

project
binutils
subsystem
binutils/dwarf
patch_id
discussion_id
20260516001043.422461-1-hawkinsw@obs.cr
source_type
public_inbox
title
[PATCH v5] binutils/dwarf: Print embedded source, when available
headline
binutils/dwarf: Print embedded source, when available
tldr
Extends objdump to print embedded source code from DWARFv5 debug information, if present.
proposer
Will Hawkins <hawkinsw@obs.cr>
consensus
Proposed
outcome
proposed
sentiment_score
technical_tradeoffs
  • Increased objdump complexity to support a new DWARFv5 feature.
  • Potential performance impact due to additional data processing in objdump.
series_id
series_role
standalone
series_parts
[]
tags
  • binutils
  • dwarf
  • objdump
  • debugging
  • embedded source
bugzilla_url
date
2026-05-16T00:00:00.000Z

[PATCH v5] binutils/dwarf: Print embedded source, when available

This patch modifies objdump to extract and print embedded source code stored in DWARFv5 debugging information. The patch iterates on previous versions by fixing issues such as incorrect bitwise operations, formatting problems, scoping issues, and test case compatibility. This enhancement allows developers to view the original source code directly from the disassembled object file, which simplifies debugging and reverse engineering, especially when source files are missing.