[PATCH v3] gas: support for .previous, .pushsection and .popsection pseudo ops for coff

Project / Subsystem

binutils / gas

Date

2026-09-09

Proposer

Johannes Khoshnazar-Thoma <johannes@johannesthoma.com>

Source type

public_inbox

Consensus

Proposed

Sentiment

—/10

Technical tradeoffs

  • • Enhances gas functionality for COFF targets with section management.
  • • Enables cross-compilation scenarios like Linux kernel for Windows.

All attributes

project
binutils
subsystem
gas
patch_id
—
discussion_id
20260909152715.1524505-2-johannes@johannesthoma.com
source_type
public_inbox
title
[PATCH v3] gas: support for .previous, .pushsection and .popsection pseudo ops for coff
headline
gas: support for .previous, .pushsection and .popsection pseudo ops for coff
tldr
Adds .previous, .pushsection, and .popsection pseudo-ops to gas for COFF targets, enabling Linux kernel compilation for Windows drivers.
proposer
Johannes Khoshnazar-Thoma <johannes@johannesthoma.com>
consensus
Proposed
outcome
proposed
sentiment_score
—
technical_tradeoffs
  • • Enhances gas functionality for COFF targets with section management.
  • • Enables cross-compilation scenarios like Linux kernel for Windows.
series_id
—
series_role
cover
series_parts
[]
tags
  • • binutils
  • • gas
  • • COFF
  • • assembler directives
bugzilla_url
—
date
2026-09-09T00:00:00.000Z

[PATCH v3] gas: support for .previous, .pushsection and .popsection pseudo ops for coff

This patch introduces support for .previous, .pushsection, and .popsection pseudo-operations in the GNU Assembler (gas) for COFF targets. These directives provide section stacking capabilities, mirroring their ELF counterparts. The implementation is a foundational step towards compiling the Linux kernel as a Windows or ReactOS driver, which requires these section management features.