/usr/bin/arm-linux-gnu-ld: warning: start.o: missing .note.GNU-stack section implies executable stack /usr/bin/arm-linux-gnu-ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linkerI understand in a general way what the intent is, but the situation that led to this nanny business has nothing to do with bare-metal embedded code. Nonetheless, to get rid of the above, add this to the end of any and all assembler code source files:
# Idiotic junk to avoid complaints from linker .section .note.GNU-stack,"",%progbits
What seems to work is adding this option to your link options:
-z noexecstackThe history on all this is here:
I you are running gcc to do your linking, add this to the link options:
-Wl,--no-warn-rwx-segments
If you are running ld to do your linking, add this:
--no-warn-rwx-segmentsIn other words the "-Wl," prefix is just a way of wrapping anything and everything that you might want gcc to pass along to ld.
Tom's Computer Info / tom@mmto.org