[PATCH] sh: handle Linux core notes in the generic ELF vector

Project / Subsystem

binutils / sh

Date

2026-09-26

Proposer

Matt Turner <mattst88@gmail.com>

Source type

public_inbox

Consensus

Proposed

Sentiment

—/10

All attributes

project
binutils
subsystem
sh
patch_id
—
discussion_id
20260926041603.736177-1-mattst88@gmail.com
source_type
public_inbox
title
[PATCH] sh: handle Linux core notes in the generic ELF vector
headline
sh: Handle Linux core notes in generic ELF vector
tldr
Patch modifies the SH ELF backend to correctly handle Linux core notes, fixing an issue where GDB could not find registers in core dumps.
proposer
Matt Turner <mattst88@gmail.com>
consensus
Proposed
outcome
proposed
sentiment_score
—
technical_tradeoffs
[]
series_id
—
series_role
standalone
series_parts
[]
tags
  • • binutils
  • • sh
  • • core dump
  • • debugging
  • • elf
bugzilla_url
—
date
2026-09-26T00:00:00.000Z

[PATCH] sh: handle Linux core notes in the generic ELF vector

This patch addresses a bug in the SH ELF backend where the generic ELF vector was not properly handling Linux-specific core notes like NT_PRSTATUS and NT_PRPSINFO. This resulted in core files lacking a .reg section, preventing GDB from displaying registers. The fix ensures these notes are handled in the generic vector, which is inherited by the Linux vector.