Landing: dadfcb36d905

Project / Subsystem

gcc / libphobos

Date

2026-07-10

Author

Rainer Orth

Commit

dadfcb36d905c619f196106ceea6e0f37831f5be

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libphobos
patch_id
commit_hash
dadfcb36d905c619f196106ceea6e0f37831f5be
source_type
github
headline
libphobos: Disable .note.GNU-stack on NetBSD
tldr
Disables the emission of .note.GNU-stack section on NetBSD to fix linker warnings and align with system behavior.
author
Rainer Orth
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • libphobos
  • netbsd
  • linker
  • ELF
discussion_id_link
bugzilla_pr
date
2026-07-10T00:00:00.000Z

This commit disables the generation of the .note.GNU-stack section for libphobos on NetBSD to resolve linker warnings about executable stacks. NetBSD’s linker (gld) warns when this section is missing, but the NetBSD platform does not require or use it, unlike FreeBSD and OpenBSD. The change removes its inclusion from libdruntime/config/common/threadasm.S for NetBSD.