binutils Newspaper
NOVEMBER 30, 2026
aarch64 — Committed

aarch64: Fix PAuth_LR tests for aarch64-pe

Fixes aarch64-pe build failure by adjusting .balign to .org for section alignment.

A patch addresses a build failure in aarch64-pe targets. The issue stemmed from using .balign 0x40000, which resulted in a non-representable section alignment for PE/COFF objects. The fix replaces this with .org-based padding and relaxes disassembly expectations for PE/COFF symbol spelling.

In the Thread 2 participants
  1. Muhammad Kamran proposer

    Submitted a patch to fix aarch64-pe build failures related to section alignment.

    “It addresses the aarch64-pe failure reported by Alan [1], where the PAuth_LR tests used .balign 0x40000 and caused a non-representable 2**18 .text section alignment for PE/COFF objects. The patch replaces that with .org-based padding and relaxes the expected disassembly to account for PE/COFF symbol spelling.”
  2. Alice Carlotti <alice.carlotti@arm.com> maintainer

    Accepted and pushed the patch.

    “Thanks - I've pushed it for you.”

Technical Tradeoffs

  • Replaced a potentially problematic alignment directive with a more compatible padding method.

In Details

This patch corrects a test case in the aarch64 PE/COFF target. The original test used a large .balign directive which is not well-supported by PE/COFF section alignment, causing a failure. The fix uses .org for padding and adjusts test expectations.

Filed Under: aarch64PE/COFFtesting