Landing: 41125b697171
Project / Subsystem
binutils / ld.bfd
Date
2026-07-07
Author
Alan Modra <amodra@sourceware.org>
Commit
41125b6971718e3164d9cf8fc78670ddb80403b4
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- ld.bfd
- patch_id
- —
- commit_hash
- 41125b6971718e3164d9cf8fc78670ddb80403b4
- source_type
- public_inbox
- headline
- LoongArch: Fix relaxation alignment with ld -r
- tldr
- Binutils linker fixes LoongArch relaxation alignment issues when using `ld -r`.
- author
- Alan Modra <amodra@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • binutils
- • linker
- • LoongArch
- • relaxation
- discussion_id_link
- public_inbox:binutils#33236
- bugzilla_pr
- —
- date
- 2026-07-07T00:00:00.000Z
Binutils’ linker (ld) now correctly handles relaxation alignment on LoongArch when operating in relinkable mode (ld -r). This commit corrects the sh_size and sh_entsize of sections containing relocation information, ensuring they use the size of external relocations. This fixes issues causing assembler-generated notes in linkonce sections to fail during relinking and improves alignment handling for ld-loongarch-elf/relax-align-ld-r test cases.