https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117434
--- Comment #9 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to kargls from comment #8) > (In reply to Iain Sandoe from comment #7) > > /usr/local/bin/ld: warning: /tmp/ccVWAwWh.o: requires executable stack > (because the .note.GNU-stack section is executable) FAOD - does this actually prevent the executable from running - or is it that your platform is (correctly) pointing out that executable stack can be considered a security risk? Perhaps your static linker has some option that would prevent that warning, is the man-page visible online?