Re: [PATCH] x86: Improve relocation error reporting
Project / Subsystem
binutils / x86
Date
2026-08-05
Proposer
H.J. Lu
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
All attributes
- project
- binutils
- subsystem
- x86
- patch_id
- —
- discussion_id
- CAMe9rOook8W2CkPBbJe6bKbpkobjjFT_zc+xshrXJdjO9fxHoA@mail.gmail.com
- source_type
- public_inbox
- title
- Re: [PATCH] x86: Improve relocation error reporting
- headline
- x86: Improve relocation error reporting
- tldr
- The linker now provides more descriptive error messages for out-of-range relocations on x86 architectures.
- proposer
- H.J. Lu
- consensus
- Proposed
- outcome
- committed
- sentiment_score
- —
- technical_tradeoffs
- []
- series_id
- —
- series_role
- standalone
- series_parts
- []
- tags
-
- • linker
- • x86
- • error-reporting
- • diagnostics
- bugzilla_url
- —
- date
- 2026-08-05T00:00:00.000Z
Re: [PATCH] x86: Improve relocation error reporting
This patch improves error reporting in the linker for x86 relocations that are out of range. Instead of a generic error code (e.g., “error 4”), the linker now provides a more informative message, specifying the relocation type (e.g., R_X86_64_64) and indicating that it’s “out of section range.” This change enhances diagnostics for developers debugging relocation issues, particularly for PR ld/34448.