Delete _bfd_elf_get_dynamic_reloc_section

Project / Subsystem

binutils / binutils

Date

2026-05-01

Proposer

Alan Modra <amodra@gmail.com>

Source type

public_inbox

Consensus

Proposed

Sentiment

/10

Technical tradeoffs

  • Removes dead code, simplifying the codebase.
  • No functional change, as the same information is still accessible through a different method.

All attributes

project
binutils
subsystem
binutils
patch_id
discussion_id
afSgyrFTP_8j0wIy@squeak.grove.modra.org
source_type
public_inbox
title
Delete _bfd_elf_get_dynamic_reloc_section
headline
Delete _bfd_elf_get_dynamic_reloc_section
tldr
Removes the `_bfd_elf_get_dynamic_reloc_section` function as it is no longer needed.
proposer
Alan Modra <amodra@gmail.com>
consensus
Proposed
outcome
proposed
sentiment_score
technical_tradeoffs
  • Removes dead code, simplifying the codebase.
  • No functional change, as the same information is still accessible through a different method.
series_id
series_role
standalone
series_parts
[]
tags
  • binutils
  • bfd
  • elf
  • relocation
  • code removal
bugzilla_url
date
2026-05-01T00:00:00.000Z

Delete _bfd_elf_get_dynamic_reloc_section

Alan Modra proposes removing the _bfd_elf_get_dynamic_reloc_section function from the binutils library. The function is no longer necessary because _bfd_elf_make_dynamic_reloc_section now guarantees that elf_section_data(sec)->sreloc is set to the dynamic reloc section. The patch also updates several files to get the dynamic reloc section via elf_section_data.