Landing: 2cd5360f35af

Project / Subsystem

binutils / ld

Date

2026-05-05

Author

H.J. Lu <hjl@sourceware.org>

Commit

2cd5360f35af63abd267ad628566b13ee8febaa8

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
ld
patch_id
commit_hash
2cd5360f35af63abd267ad628566b13ee8febaa8
source_type
public_inbox
headline
Linker Now Orders Input Files Consistently
tldr
The linker now maintains the input file order when adding new archives from linker scripts, which fixes LTO rescanning issues.
author
H.J. Lu <hjl@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • ld
  • linker
  • lto
  • linker script
  • input file order
discussion_id_link
bugzilla_pr
date
2026-05-05T00:00:00.000Z

When the linker adds a new input archive from a linker script that isn’t referenced by any inputs, it now appends it to the input file list in the correct order. This fixes a problem where compiler built-in functions were not being added to the LTO symbol table, leading to issues during LTO rescan.