[PATCH] ld: default the aarch64pe section alignment to 64K

Project / Subsystem

binutils / ld

Date

2026-08-13

Proposer

trcrsired <oyzawqgcfc@gmail.com>

Source type

public_inbox

Consensus

Proposed

Sentiment

—/10

Technical tradeoffs

  • • Increased section alignment may lead to slightly larger file sizes due to padding, but improves compatibility on modern hardware.

All attributes

project
binutils
subsystem
ld
patch_id
—
discussion_id
20260813171737.3172237-1-oyzawqgcfc@gmail.com
source_type
public_inbox
title
[PATCH] ld: default the aarch64pe section alignment to 64K
headline
ld: Default aarch64pe section alignment to 64K
tldr
Patch modifies GNU ld to default section alignment for aarch64pe to 64K, ensuring compatibility with 16K page sizes on ARM64 hosts.
proposer
trcrsired <oyzawqgcfc@gmail.com>
consensus
Proposed
outcome
proposed
sentiment_score
—
technical_tradeoffs
  • • Increased section alignment may lead to slightly larger file sizes due to padding, but improves compatibility on modern hardware.
series_id
—
series_role
standalone
series_parts
[]
tags
  • • ld
  • • aarch64
  • • windows
  • • alignment
  • • patch
bugzilla_url
—
date
2026-08-13T00:00:00.000Z

[PATCH] ld: default the aarch64pe section alignment to 64K

This patch addresses an issue where the default 4K section alignment for aarch64pe executables is incompatible with ARM64 hosts using 16K page sizes, such as Apple Silicon or Android devices. The change defaults the section alignment to 64K, ensuring that these executables can be mapped by the loader, even under Wine.