Re: [PATCH] readelf: Don't dump GOT section after seeing error

Project / Subsystem

binutils / readelf

Date

2026-08-06

Proposer

Jan Beulich <jbeulich@suse.com>

Source type

public_inbox

Consensus

Proposed

Sentiment

—/10

Technical tradeoffs

  • • Improves robustness by preventing `readelf` from producing potentially misleading output after encountering errors.
  • • Generalizing the error handling could increase code complexity but enhance overall stability across various object file formats.

All attributes

project
binutils
subsystem
readelf
patch_id
—
discussion_id
a3a94cf9-2c06-49cd-8ab8-7a76a8c706e0@suse.com
source_type
public_inbox
title
Re: [PATCH] readelf: Don't dump GOT section after seeing error
headline
readelf: Don't dump GOT section after seeing error
tldr
Suggestion to generalize readelf error handling beyond just the GOT section.
proposer
Jan Beulich <jbeulich@suse.com>
consensus
Proposed
outcome
proposed
sentiment_score
—
technical_tradeoffs
  • • Improves robustness by preventing `readelf` from producing potentially misleading output after encountering errors.
  • • Generalizing the error handling could increase code complexity but enhance overall stability across various object file formats.
series_id
—
series_role
cover
series_parts
[]
tags
  • • binutils
  • • readelf
  • • error handling
  • • GOT
  • • ELF
bugzilla_url
—
date
2026-08-06T00:00:00.000Z

Re: [PATCH] readelf: Don't dump GOT section after seeing error

Jan Beulich reviews a patch for readelf that prevents dumping the GOT section after errors occur, acknowledging its usefulness for the specific case. He suggests that this error-handling model might be beneficial to generalize and apply to other sections or contexts within readelf as well, improving overall robustness.