https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105472
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I hope nobody cares about Linux a.out anymore. But #if defined(__ELF__) && defined(__linux__) .section .note.GNU-stack,"",@progbits .previous #endif is I think the most widely used way how to do it.