https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123698
Bug ID: 123698
Summary: .note.GNU-stack section type
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: jbeulich at suse dot com
Target Milestone: ---
GNU binutils are in the process of changing .note.GNU-stack's ELF section type
from SHT_PROGBITS to SHT_NOTE. See
https://sourceware.org/git?p=binutils-gdb.git;a=commitdiff;h=c8db2c887b4129732341c4a1a51cdcd3191db271
and
https://sourceware.org/pipermail/binutils/2026-January/147337.html
https://sourceware.org/pipermail/binutils/2026-January/147528.html
While consuming PROGBITS sections of this same name is intended to continue to
work fine, it was asked that it be suggested to gcc to change the section type
too in the assembly code it emits. Or alternatively to stop emitting a
respective .section directive and instead make use of the assembler option
(--execstack / --noexecstack).
This may or may not want to extend to .note.GNU-{no-,}split-stack, presently
known only to (unmaintained) gold.