[PATCH v2] x86/Intel: avoid infinite recursion in i386_intel_simplify_symbol() (again)
Project / Subsystem
binutils / x86/intel
Date
2026-05-15
Proposer
Jan Beulich <jbeulich@suse.com>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
Technical tradeoffs
- • Added complexity to symbol resolution logic to prevent infinite recursion.
- • Slight performance impact due to additional checks during symbol simplification.
All attributes
- project
- binutils
- subsystem
- x86/intel
- patch_id
- —
- discussion_id
- 8ffded37-0027-4de5-9e23-37ed43dba6f8@suse.com
- source_type
- public_inbox
- title
- [PATCH v2] x86/Intel: avoid infinite recursion in i386_intel_simplify_symbol() (again)
- headline
- x86/Intel: avoid infinite recursion in i386_intel_simplify_symbol() (again)
- tldr
- Fixes a potential infinite recursion in the x86 assembler's symbol simplification logic, and adds a test case to prevent regressions.
- proposer
- Jan Beulich <jbeulich@suse.com>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
-
- • Added complexity to symbol resolution logic to prevent infinite recursion.
- • Slight performance impact due to additional checks during symbol simplification.
- series_id
- —
- series_role
- standalone
- series_parts
- []
- tags
-
- • gas
- • assembler
- • x86
- • intel syntax
- • recursion
- bugzilla_url
- —
- date
- 2026-05-15T00:00:00.000Z
[PATCH v2] x86/Intel: avoid infinite recursion in i386_intel_simplify_symbol() (again)
This patch addresses a re-emergence of an infinite recursion issue within the i386_intel_simplify_symbol() function in the x86 assembler. The problem arises when dealing with equates and symbol chains. The patch enhances the use of the ‘resolving’ property to prevent the recursion. A new test case is added to ensure this issue doesn’t reappear in future updates, enhancing the assembler’s stability.