[PATCH] gas: add flex mode to .bundle_lock

Project / Subsystem

binutils / gas

Date

2026-10-03

Proposer

Sarvesh Chandra <Sarvesh.Chandra@amd.com>

Source type

public_inbox

Consensus

Proposed

Sentiment

—/10

Technical tradeoffs

  • • Potential for reduced performance if oversized sequences negate the benefits of strict bundling.
  • • Increased complexity in the assembler's directive parsing and validation logic.

All attributes

project
binutils
subsystem
gas
patch_id
—
discussion_id
20261003081706.717320-1-Sarvesh.Chandra@amd.com
source_type
public_inbox
title
[PATCH] gas: add flex mode to .bundle_lock
headline
gas: add flex mode to .bundle_lock
tldr
Enables GAS to accept oversized sequences in .bundle_lock directives for flexible alignment.
proposer
Sarvesh Chandra <Sarvesh.Chandra@amd.com>
consensus
Proposed
outcome
proposed
sentiment_score
—
technical_tradeoffs
  • • Potential for reduced performance if oversized sequences negate the benefits of strict bundling.
  • • Increased complexity in the assembler's directive parsing and validation logic.
series_id
—
series_role
standalone
series_parts
[]
tags
  • • gas
  • • assembler
  • • x86
  • • optimization
  • • directive
bugzilla_url
—
date
2026-10-03T00:00:00.000Z

[PATCH] gas: add flex mode to .bundle_lock

This patch introduces a ‘flex mode’ to the .bundle_lock directive in GNU Assembler (GAS), allowing sequences larger than the defined bundle size. It preserves existing alignment handling and strict checks for ordinary locks. New test cases are included to cover various scenarios, including straddling, non-straddling, oversized, and nested locks.