Landing: f9c26587f19e

Project / Subsystem

binutils / binutils/bfd

Date

2026-06-06

Author

Alan Modra

Commit

f9c26587f19ebfacc8c55caa72120833dad7ee45

Source

public_inbox

Perf win

Yes

Breaking

No

All attributes

project
binutils
subsystem
binutils/bfd
patch_id
commit_hash
f9c26587f19ebfacc8c55caa72120833dad7ee45
source_type
public_inbox
headline
Many ELF linker functions now implicitly access the output BFD.
tldr
Binutils ELF linker functions now access `info->output_bfd` directly instead of taking it as a parameter, reducing code size.
author
Alan Modra
outcome
committed
performance_win
true
breaking_change
false
series_id
series_parts
[]
tags
  • refactor
  • linker
  • code size
discussion_id_link
public_inbox:binutils#4424
bugzilla_pr
date
2026-06-06T00:00:00.000Z

This commit refactors numerous ELF linker functions in Binutils by removing the explicit bfd parameter. Instead, these functions now access the output BFD object via info->output_bfd, which is always available through the bfd_link_info structure. This change, which streamlines function signatures and slightly reduces the final linker binary size, applies to functions that are consistently passed a non-NULL bfd_link_info and are not invoked directly through a BFD_SEND macro using the output BFD.