[PATCH 0/3] LoongArch: Deprecate -mignore-start-align and fix .reloc for relaxtion
Project / Subsystem
binutils / loongarch
Date
2026-09-10
Proposer
mengqinggang <mengqinggang@loongson.cn>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
Technical tradeoffs
- • Removes a deprecated option, simplifying the assembler's interface.
- • Fixes correctness issues in linker relaxation handling.
- • Introduces new test cases to verify the fixes.
All attributes
- project
- binutils
- subsystem
- loongarch
- patch_id
- —
- discussion_id
- 20260910092253.526336-1-mengqinggang@loongson.cn
- source_type
- public_inbox
- title
- [PATCH 0/3] LoongArch: Deprecate -mignore-start-align and fix .reloc for relaxtion
- headline
- LoongArch: Deprecate -mignore-start-align and fix .reloc relaxation
- tldr
- Deprecates an old alignment option and fixes linker relaxation issues related to .reloc directives on LoongArch.
- proposer
- mengqinggang <mengqinggang@loongson.cn>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
-
- • Removes a deprecated option, simplifying the assembler's interface.
- • Fixes correctness issues in linker relaxation handling.
- • Introduces new test cases to verify the fixes.
- series_id
- binutils:loongarch: deprecate -mignore-start-align and fix .reloc for relaxtion
- series_role
- cover
- series_parts
- []
- tags
-
- • LoongArch
- • assembler
- • linker
- • relocation
- • deprecated
- bugzilla_url
- —
- date
- 2026-09-10T00:00:00.000Z
[PATCH 0/3] LoongArch: Deprecate -mignore-start-align and fix .reloc for relaxtion
This patch series addresses two main areas for the LoongArch toolchain. The first patch deprecates the -mignore-start-align option in GAS, as its functionality is now handled by default optimizations. The subsequent two patches fix critical issues related to linker relaxation when .reloc *, R_LARCH_RELAX directives are used. These fixes ensure that fragments marked as linker-relaxable are correctly identified and handled, preventing incorrect relocation generation and DWARF information.