Landing: 65043894aaac
Project / Subsystem
binutils / bfd
Date
2026-06-30
Author
Alan Modra <amodra@sourceware.org>
Commit
65043894aaacd56b37bd1d634a97393f654d0589
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- bfd
- patch_id
- —
- commit_hash
- 65043894aaacd56b37bd1d634a97393f654d0589
- source_type
- public_inbox
- headline
- bfd: Handle PE weak externals with real fallbacks in archives
- tldr
- BFD now correctly handles PE weak externals with real fallback definitions in archives for linking.
- author
- Alan Modra <amodra@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • bfd
- • linker
- • pe coff
- • weak symbols
- • archives
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-30T00:00:00.000Z
This commit addresses an issue in BFD where PE weak externals with real fallback definitions within archives were not correctly handled. Previously, these symbols were canonicalized as undefined, preventing the linker from extracting the correct archive member when a strong undefined reference occurred. The fix ensures these weak externals are included in the archive map when a valid fallback exists, and avoids redundant extraction of archive members.