Landing: ad945ff8bb9a
Project / Subsystem
binutils / gas/loongarch
Date
2026-07-10
Author
liu zhensong <liuzhensong@sourceware.org>
Commit
ad945ff8bb9aac87ad06c5e290c767096fcea538
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- gas/loongarch
- patch_id
- —
- commit_hash
- ad945ff8bb9aac87ad06c5e290c767096fcea538
- source_type
- public_inbox
- headline
- LoongArch: Emit alignment relocations only after relaxed instructions
- tldr
- Aligns LoongArch GAS behavior for alignment relocations with relaxed instructions, preventing incorrect emission.
- author
- liu zhensong <liuzhensong@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • loongarch
- • gas
- • relocations
- • assembly
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-10T00:00:00.000Z
This commit refines how LoongArch’s GAS handles alignment relocations by ensuring they are emitted only after relaxed instructions have been processed. Previously, alignment fragments could be created without considering whether the section contained relaxed instructions, potentially leading to incorrect relocation emission. This change aligns the GAS behavior with LLVM’s approach (referenced in the commit) and improves the accuracy of generated code.