[PATCH] x86: Improve relocation error reporting
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
- • Improves diagnostic information at the cost of slightly more verbose error messages.
- • Helps developers pinpoint specific relocation errors more quickly.
All attributes
- project
- binutils
- subsystem
- x86
- patch_id
- —
- discussion_id
- CAMe9rOptwXvtZ1iB=tJc21KGAs2kaZr6pFmW_XbKh2PNoc2Kjw@mail.gmail.com
- source_type
- public_inbox
- title
- [PATCH] x86: Improve relocation error reporting
- headline
- x86: Improve relocation error reporting
- tldr
- Enhances error messages for out-of-range relocations in the x86 ELF linker, providing more specific details.
- proposer
- "H.J. Lu" <hjl.tools@gmail.com>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
-
- • Improves diagnostic information at the cost of slightly more verbose error messages.
- • Helps developers pinpoint specific relocation errors more quickly.
- series_id
- —
- series_role
- standalone
- series_parts
- []
- tags
-
- • binutils
- • linker
- • x86
- • relocation
- • error-reporting
- bugzilla_url
- —
- date
- 2026-08-04T00:00:00.000Z
[PATCH] x86: Improve relocation error reporting
This patch improves the error reporting for ‘relocation against out of range’ errors in the x86 ELF linker. Previously, the error message was generic. The updated reporting now includes the specific relocation type (e.g., R_X86_64_64), making it easier for developers to diagnose and fix issues related to incorrect relocations in object files.