Landing: eb2be880c895
Project / Subsystem
binutils / gas/loongarch
Date
2026-07-10
Author
liu zhensong <liuzhensong@sourceware.org>
Commit
eb2be880c89506ddc619af484121df1c9538e8e8
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- gas/loongarch
- patch_id
- —
- commit_hash
- eb2be880c89506ddc619af484121df1c9538e8e8
- source_type
- public_inbox
- headline
- LoongArch: Reduce relocations for label subtraction with no relaxed instructions
- tldr
- Optimizes LoongArch assembly by avoiding unnecessary relocations for label subtractions when no relaxed instructions are involved.
- author
- liu zhensong <liuzhensong@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • loongarch
- • gas
- • relocations
- • optimization
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-10T00:00:00.000Z
This change introduces optimizations for LoongArch assembly by intelligently managing relocations related to label subtraction. It marks fragments and sections to indicate the presence of relaxed instructions. Consequently, if no relaxed instructions exist between addsy and subsy operations, the assembler now avoids emitting unnecessary relocations, leading to smaller object files and potentially faster linking times.