Landing: 7858cadd335b

Project / Subsystem

binutils / binutils/ld

Date

2026-07-06

Author

liu zhensong <liuzhensong@sourceware.org>

Commit

7858cadd335b3ffbc8e0250c0c180253d9f09489

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
binutils/ld
patch_id
commit_hash
7858cadd335b3ffbc8e0250c0c180253d9f09489
source_type
public_inbox
headline
LoongArch: Fix linker relaxation alignment
tldr
LoongArch linker correctly updates section output offsets during relaxation to maintain alignment.
author
liu zhensong <liuzhensong@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • binutils
  • ld
  • loongarch
  • linker
  • alignment
discussion_id_link
bugzilla_pr
date
2026-07-06T00:00:00.000Z

This commit resolves alignment issues in the LoongArch linker related to relaxation. Previously, the output_offset of a section was updated during relaxation without considering alignment requirements. The fix ensures that the output_offset is correctly updated by the align_power function, thus preserving section alignment.