https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94157
--- Comment #10 from Martin Liška <marxin at gcc dot gnu.org> --- Seems you are using the latest binutils ld, right? It's the newly added warning which tells that usage of executable stack is a potential security issue: https://sourceware.org/pipermail/binutils/2022-April/120476.html