Landing: c38fc9a9d495

Project / Subsystem

binutils / bfd

Date

2026-05-01

Author

Alan Modra <amodra@sourceware.org>

Commit

c38fc9a9d4958b45cdc9a53b4f6fe28126779705

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
bfd
patch_id
commit_hash
c38fc9a9d4958b45cdc9a53b4f6fe28126779705
source_type
public_inbox
headline
Bfd: Remove redundant lookup of dynamic reloc section.
tldr
Removes a redundant name lookup when retrieving the dynamic relocation section, simplifying code in several architectures.
author
Alan Modra <amodra@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • bfd
  • elf
  • relocation
  • refactor
discussion_id_link
bugzilla_pr
date
2026-05-01T00:00:00.000Z

The function _bfd_elf_get_dynamic_reloc_section was used to find the dynamic relocation section by name. However, the section is already available via elf_section_data(sec)->sreloc after _bfd_elf_make_dynamic_reloc_section is called. This commit removes the function and updates architecture-specific code to use the elf_section_data method, making the code simpler.