Landing: 3ee1aec36a32

Project / Subsystem

binutils / gas/loongarch

Date

2026-08-31

Author

liu zhensong <liuzhensong@sourceware.org>

Commit

3ee1aec36a32879294dd15b3d9aab740520fa8eb

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
gas/loongarch
patch_id
—
commit_hash
3ee1aec36a32879294dd15b3d9aab740520fa8eb
source_type
public_inbox
headline
LoongArch: Emit relocations for .long 0x2eef - symbol
tldr
LoongArch assembler now correctly emits relocations for expressions involving subtraction with a symbol.
author
liu zhensong <liuzhensong@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • loongarch
  • • assembler
  • • relocations
  • • bugfix
discussion_id_link
—
bugzilla_pr
—
date
2026-08-31T00:00:00.000Z

The LoongArch assembler has been updated to correctly emit relocations for expressions like .long 0x2eef - symbol. Previously, the assembler could not generate these relocations when fx_addsy was NULL in fixup_segment. This change modifies md_apply_fix to set fx_addsy to abs_section_sym, enabling the generation of necessary relocations.