[PATCH 1/3] LoongArch: Emit relocations for .long 0x2eef - symbol
Project / Subsystem
binutils / loongarch
Date
2026-08-13
Proposer
mengqinggang <mengqinggang@loongson.cn>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
Technical tradeoffs
- • Enables correct handling of symbolic subtraction expressions, improving code generation accuracy.
- • Fixes a bug that prevented certain relocations from being generated.
All attributes
- project
- binutils
- subsystem
- loongarch
- patch_id
- —
- discussion_id
- 20260813170736.1880481-2-mengqinggang@loongson.cn
- source_type
- public_inbox
- title
- [PATCH 1/3] LoongArch: Emit relocations for .long 0x2eef - symbol
- headline
- LoongArch: Emit relocations for .long 0x2eef - symbol
- tldr
- Enables correct relocation generation for symbolic subtraction expressions.
- proposer
- mengqinggang <mengqinggang@loongson.cn>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
-
- • Enables correct handling of symbolic subtraction expressions, improving code generation accuracy.
- • Fixes a bug that prevented certain relocations from being generated.
- series_id
- binutils:loongarch: emit relocations for .long 0x2eef - symbol
- series_role
- reply
- series_parts
- []
- tags
-
- • loongarch
- • assembler
- • relocations
- • symbolic expressions
- bugzilla_url
- —
- date
- 2026-08-13T00:00:00.000Z
[PATCH 1/3] LoongArch: Emit relocations for .long 0x2eef - symbol
This patch enables the LoongArch assembler to correctly emit relocations for expressions like ‘.long 0x2eef - symbol’. Previously, the assembler failed to generate these relocations because fx_addsy was incorrectly set to NULL. The fix involves setting fx_addsy to abs_section_sym in md_apply_fix to ensure proper relocation handling.