Excerpts from Rainer Orth's message of Juli 9, 2026 10:34 am: > When linking with a static libgphobos on NetBSD/amd64, gld 2.46 warns > > gld-2.46: warning: /usr/lib/crtn.o: missing .note.GNU-stack section implies > executable stack > > This is caused by libdruntime/config/common/threadasm.S including the > note on NetBSD. This was introduced in the original druntime repo with > > commit 3d8d4a45c01832fb657c16a656b6e1566d77fb21 > Author: Nikolay Tolstokulakov <[email protected]> > Date: Thu Feb 4 13:40:21 2016 +0600 > > netbsd patch > > apparently by simply matching what FreeBSD and NetBSD do. However, > NetBSD doesn't use those notes: TARGET_ASM_FILE_END isn't defined and > the bundled GCC 10.5.0 doesn't emit it either. > > Therefore this patch omits it. > > The same issue is still present in upstream DMD in > druntime/src/core/thread/fiber/switch_context_asm.S. > > Bootstapped without regressions on amd64-pc-netbsd10.1. > > Ok for trunk? >
OK Thanks. Iain.
