Landing: deb5d51883d7
Project / Subsystem
binutils / gas/loongarch
Date
2026-09-27
Author
liu zhensong <liuzhensong@sourceware.org>
Commit
deb5d51883d7d6659e08a5b8e3a7d1ca769e0684
Source
public_inbox
Perf win
Yes
Breaking
No
All attributes
- project
- binutils
- subsystem
- gas/loongarch
- patch_id
- —
- commit_hash
- deb5d51883d7d6659e08a5b8e3a7d1ca769e0684
- source_type
- public_inbox
- headline
- LoongArch: Mark .reloc *, R_LARCH_RELAX target frags correctly
- tldr
- LoongArch GAS now correctly marks fragments with R_LARCH_RELAX for linker relaxation.
- author
- liu zhensong <liuzhensong@sourceware.org>
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • loongarch
- • gas
- • linker
- • relocation
- • dwarf
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-27T00:00:00.000Z
LoongArch GAS now properly identifies and marks fragments containing .reloc *, R_LARCH_RELAX, indicating they are linker-relaxable. This prevents GAS from incorrectly treating distances between symbols within these frags as fixed, which could lead to inappropriate PC-relative relocations or DWARF line table issues. The change ensures that same-frag symbol subtraction uses ADD/SUB relocs and forces DW_LNS_fixed_advance_pc in DWARF line tables when R_LARCH_RELAX is present.