[PATCH] AArch64 GAS: Reject nonzero GOT-entry relocation addends

Project / Subsystem

binutils / gas

Date

2026-09-08

Proposer

Sivan Shani <sivan.shani@arm.com>

Source type

public_inbox

Consensus

Proposed

Sentiment

—/10

Technical tradeoffs

  • • Stricter adherence to the AAELF specification for GOT relocations versus potential compatibility issues if non-zero addends were previously accepted.

All attributes

project
binutils
subsystem
gas
patch_id
—
discussion_id
20260908143017.501355-1-sivan.shani@arm.com
source_type
public_inbox
title
[PATCH] AArch64 GAS: Reject nonzero GOT-entry relocation addends
headline
AArch64 GAS: Reject nonzero GOT-entry relocation addends
tldr
Patch enforces zero addends for specific AArch64 GOT-entry relocations as required by AAELF.
proposer
Sivan Shani <sivan.shani@arm.com>
consensus
Proposed
outcome
proposed
sentiment_score
—
technical_tradeoffs
  • • Stricter adherence to the AAELF specification for GOT relocations versus potential compatibility issues if non-zero addends were previously accepted.
series_id
—
series_role
cover
series_parts
[]
tags
  • • AArch64
  • • linker
  • • relocation
bugzilla_url
—
date
2026-09-08T00:00:00.000Z

[PATCH] AArch64 GAS: Reject nonzero GOT-entry relocation addends

Sivan Shani submits a patch to the AArch64 assembler (GAS) that enforces the AAELF requirement for zero addends on relocations involving GDAT, GTLSIDX, GTPREL, or GTLSDESC operations. The patch introduces a common predicate to identify these relocation types and rejects non-zero addends, ensuring symbol identity preservation. New tests for both LP64 and ILP32 ABIs are included.