[Bug go/92820] [10 Regression] libgo.so.15 has executable stack
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 6 17:31:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92820
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
As elsewhere, the .note should be guarded on Linux or so, either
#ifdef __linux__
or something similar. And the second thing is that @progbits is only
recognized on some platforms, others need %progbits, but ARM isn't the only
one, e.g. AArch64, SH, microblaze, and I believe SPARC Solaris as need that
too. Maybe PA too?
Maybe %progbits works everywhere, e.g.
libphobos/libdruntime/config/common/threadasm.S
uses
#if (__linux__ || __FreeBSD__ || __NetBSD__ || __DragonFly__) && __ELF__
.section .note.GNU-stack,"",%progbits
#endif
More information about the Gcc-bugs
mailing list