Landing: e644656548fc
Project / Subsystem
binutils / ld
Date
2026-07-16
Author
Nick Clifton <nickc@sourceware.org>
Commit
e644656548fcaf27a01d4f9e59fb1116323730b0
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- ld
- patch_id
- —
- commit_hash
- e644656548fcaf27a01d4f9e59fb1116323730b0
- source_type
- public_inbox
- headline
- LoongArch linker avoids unnecessary alignment sections with ld -r
- tldr
- Linker now only adds alignment sections for LoongArch when input files contain specific relocation types, fixing kernel module loading issues.
- author
- Nick Clifton <nickc@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • loongarch
- • linker
- • kernel
- • relocation
- discussion_id_link
- public_inbox:binutils#33236
- bugzilla_pr
- —
- date
- 2026-07-16T00:00:00.000Z
The LoongArch linker no longer unconditionally inserts alignment sections when using ld -r (relocation). It now checks if any input file contains R_LARCH_ALIGN or R_LARCH_RELAX relocations. This change restores correct behavior for kernel modules that expect not to contain these relocations.