https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107971
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- https://sourceware.org/binutils/docs-2.39/ld/Options.html#index-_002d_002dwarn_002dexecstack ``` Note: ELF format input files specify that they need an executable stack by having a .note.GNU-stack section with the executable bit set in its section flags. They can specify that they do not need an executable stack by having that section, but without the executable flag bit set. If an input file does not have a .note.GNU-stack section present then the default behaviour is target specific. For some targets, then absence of such a section implies that an executable stack is required. ****This is often a problem for hand crafted assembler files.**** ``` Added emphasize is mine.