[PATCH] gas: Avoid section symbols as group signatures

Project / Subsystem

binutils / gas

Date

2026-07-27

Proposer

"Kirill A. Korinsky" <kirill@korins.ky>

Source type

public_inbox

Consensus

Proposed

Sentiment

10/10

Technical tradeoffs

  • Ensures correct object file generation by disallowing section symbols as group signatures.
  • Improves compliance with ELF specifications regarding COMDAT groups.

All attributes

project
binutils
subsystem
gas
patch_id
discussion_id
20260727110447.3174-1-kirill@korins.ky
source_type
public_inbox
title
[PATCH] gas: Avoid section symbols as group signatures
headline
gas: Avoid section symbols as group signatures
tldr
Fixes gas to not reuse section symbols as COMDAT group signatures, preventing invalid object files.
proposer
"Kirill A. Korinsky" <kirill@korins.ky>
consensus
Proposed
outcome
proposed
sentiment_score
10
technical_tradeoffs
  • Ensures correct object file generation by disallowing section symbols as group signatures.
  • Improves compliance with ELF specifications regarding COMDAT groups.
series_id
series_role
standalone
series_parts
[]
tags
  • gas
  • elf
  • comdat
  • assembler
  • linker
bugzilla_url
date
2026-07-27T00:00:00.000Z

[PATCH] gas: Avoid section symbols as group signatures

This patch addresses an issue in the GNU Assembler (gas) where it incorrectly reuses unnamed STT_SECTION symbols as COMDAT group signatures. This behavior results in invalid object files, particularly when the signature matches the section name. The fix ensures that gas rejects section symbols for signature matching and creates a distinct named symbol instead. The problem was discovered during an LLVM toolchain port to OpenBSD/sparc64.