Landing: cc28c46227cd

Project / Subsystem

binutils / binutils/gas

Date

2026-05-20

Author

Alan Modra <amodra@sourceware.org>

Commit

cc28c46227cd483c22690ff7be003e48b5283573

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
binutils/gas
patch_id
commit_hash
cc28c46227cd483c22690ff7be003e48b5283573
source_type
public_inbox
headline
Assembler resolves equates safely in presence of symbol loops
tldr
The assembler now resolves equates safely in the presence of symbol loops by using `symbol_equated_to`.
author
Alan Modra <amodra@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • binutils
  • gas
  • assembler
  • bugfix
  • equates
discussion_id_link
public_inbox:binutils#30308
bugzilla_pr
date
2026-05-20T00:00:00.000Z

The assembler incorrectly handled equates in the presence of symbol loops due to premature modification of symbol values. This commit fixes the issue by using symbol_equated_to to resolve equates safely, copying value expressions before simplification. This change is applied to all symbols for increased safety.