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

Project / Subsystem

binutils / gas

Date

2026-09-10

Proposer

Johannes Khoshnazar-Thoma

Source type

public_inbox

Consensus

Proposed

Sentiment

—/10

Technical tradeoffs

  • • Enhances compatibility with build systems that rely on section manipulation, like cross-compiling the Linux kernel for Windows.
  • • Increases the complexity of the COFF backend in the gas assembler.

All attributes

project
binutils
subsystem
gas
patch_id
—
discussion_id
20260910130303.1692857-2-johannes@johannesthoma.com
source_type
public_inbox
title
[PATCH v5] 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 support for .previous, .pushsection, and .popsection pseudo-ops to the COFF target in gas.
proposer
Johannes Khoshnazar-Thoma
consensus
Proposed
outcome
proposed
sentiment_score
—
technical_tradeoffs
  • • Enhances compatibility with build systems that rely on section manipulation, like cross-compiling the Linux kernel for Windows.
  • • Increases the complexity of the COFF backend in the gas assembler.
series_id
—
series_role
standalone
series_parts
[]
tags
  • • gas
  • • COFF
  • • ELF
  • • sections
  • • cross-platform
bugzilla_url
—
date
2026-09-10T00:00:00.000Z

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

This patch introduces support for the .previous, .pushsection, and .popsection pseudo-operations in the gas assembler for COFF targets. These pseudo-ops control section manipulation, similar to their ELF counterparts. This enhancement is a necessary step towards enabling the compilation of the Linux kernel as a Windows/ReactOS driver, indicating its importance for cross-platform development and compatibility.