[PATCH] x86: Check if needed dynamic relocation section is created
Project / Subsystem
binutils / x86
Date
2026-08-04
Proposer
"H.J. Lu" <hjl.tools@gmail.com>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
Technical tradeoffs
- • Ensures more relocations are processed by not prematurely aborting on errors, potentially revealing other issues but improving robustness.
- • Adds a conditional check to maintain correct behavior when the dynamic relocation section is indeed not needed or not created.
All attributes
- project
- binutils
- subsystem
- x86
- patch_id
- —
- discussion_id
- CAMe9rOpTBfSWyDtPphPOqaeazfxBiOUPsFfNB5wKgzEuf9ewFg@mail.gmail.com
- source_type
- public_inbox
- title
- [PATCH] x86: Check if needed dynamic relocation section is created
- headline
- x86: Check if needed dynamic relocation section is created
- tldr
- Fixes an issue in binutils where a needed dynamic relocation section might not be created if an earlier relocation fails.
- proposer
- "H.J. Lu" <hjl.tools@gmail.com>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
-
- • Ensures more relocations are processed by not prematurely aborting on errors, potentially revealing other issues but improving robustness.
- • Adds a conditional check to maintain correct behavior when the dynamic relocation section is indeed not needed or not created.
- series_id
- —
- series_role
- standalone
- series_parts
- []
- tags
-
- • binutils
- • linker
- • x86
- • relocation
- • ELF
- bugzilla_url
- —
- date
- 2026-08-04T00:00:00.000Z
[PATCH] x86: Check if needed dynamic relocation section is created
This patch addresses a bug in the x86 ELF linker where the processing of relocations could be prematurely aborted due to an error. This premature abortion prevents the creation of necessary dynamic relocation sections, which in turn affects subsequent relocations. The fix ensures that the dynamic relocation count is skipped only if the needed section has not yet been created, thus allowing relocations to be processed more robustly.