[PATCH v2] elf: Only use function size from regular object
Project / Subsystem
binutils / elf
Date
2026-09-10
Proposer
H.J. Lu
Source type
public_inbox
Consensus
Under Review
Sentiment
4/10
Technical tradeoffs
- • Simplifies linker logic by removing consideration of shared library function sizes, potentially improving performance.
- • Risk of breaking compilation or runtime behavior on architectures where shared library function sizes are relevant for linking.
All attributes
- project
- binutils
- subsystem
- elf
- patch_id
- —
- discussion_id
- CAMe9rOo0M1A28Kty+TgzdLB4pRG1xnmdYM=RaDWHw3REMCVzvA@mail.gmail.com
- source_type
- public_inbox
- title
- [PATCH v2] elf: Only use function size from regular object
- headline
- elf: Only use function size from regular object
- tldr
- Ensures linker uses function size from regular objects, not shared libraries, for relevance.
- proposer
- H.J. Lu
- consensus
- Under Review
- outcome
- under_review
- sentiment_score
- 4
- technical_tradeoffs
-
- • Simplifies linker logic by removing consideration of shared library function sizes, potentially improving performance.
- • Risk of breaking compilation or runtime behavior on architectures where shared library function sizes are relevant for linking.
- series_id
- —
- series_role
- standalone
- series_parts
- []
- tags
-
- • ELF
- • linker
- • function size
- • shared libraries
- • MIPS
- bugzilla_url
- —
- date
- 2026-09-10T00:00:00.000Z
[PATCH v2] elf: Only use function size from regular object
This patch modifies the ELF linker to exclusively use function sizes defined in regular object files. It argues that function sizes specified in shared libraries at link-time are irrelevant for the linking process. The change is intended to fix PR ld/34585 and includes updates to test cases for various ELF targets.