[PATCH] AArch64 gas: Block section relative symbols in GOT relocations [PR30788]

Project / Subsystem

binutils / binutils

Date

2026-05-26

Proposer

Wilco Dijkstra <Wilco.Dijkstra@arm.com>

Source type

public_inbox

Consensus

Proposed

Sentiment

/10

All attributes

project
binutils
subsystem
binutils
patch_id
discussion_id
PAWPR08MB8982EA96A85A9846678CCFB5830B2@PAWPR08MB8982.eurprd08.prod.outlook.com
source_type
public_inbox
title
[PATCH] AArch64 gas: Block section relative symbols in GOT relocations [PR30788]
headline
AArch64 gas: Block section relative symbols in GOT relocations
tldr
This patch prevents the AArch64 assembler from incorrectly using section-relative symbols in GOT relocations, fixing PR30788.
proposer
Wilco Dijkstra <Wilco.Dijkstra@arm.com>
consensus
Proposed
outcome
proposed
sentiment_score
technical_tradeoffs
[]
series_id
series_role
standalone
series_parts
[]
tags
  • AArch64
  • assembler
  • GOT
  • relocation
  • PIC
bugzilla_url
date
2026-05-26T00:00:00.000Z

[PATCH] AArch64 gas: Block section relative symbols in GOT relocations [PR30788]

Wilco Dijkstra proposes a patch to the AArch64 assembler to prevent the generation of section-relative symbols in Global Offset Table (GOT) relocations. This is incorrect because GOT relocations do not support offsets. The patch updates aarch64_fix_adjustable() to explicitly disallow this, resolving PR30788.