Landing: 2e5f3d9f0596
Project / Subsystem
binutils / loongarch
Date
2026-04-27
Author
liu zhensong <liuzhensong@sourceware.org>
Commit
2e5f3d9f0596e60031d7c56cf943cf00e81fe53d
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- loongarch
- patch_id
- —
- commit_hash
- 2e5f3d9f0596e60031d7c56cf943cf00e81fe53d
- source_type
- public_inbox
- headline
- LoongArch: Enforce 4-byte alignment for machine instructions.
- tldr
- The LoongArch backend in GNU assembler now enforces 4-byte alignment for machine instructions to prevent instruction fetch errors.
- author
- liu zhensong <liuzhensong@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • loongarch
- • alignment
- • assembler
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-04-27T00:00:00.000Z
The LoongArch backend in GNU assembler now enforces 4-byte alignment for machine instructions. This ensures that instructions are properly aligned when linked into executables or shared objects, even when no explicit alignment is specified in the assembly source. Without this, instruction fetch errors may occur, especially when generating shared objects with the -nostdlib option.