AmigaLabs / binutils-gdb

binutils targeted for ppc-amigaos systems (AmigaOS NG like OS4.1).
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git
GNU General Public License v2.0
0 stars 0 forks source link

ld : ppc-amigaos/bin/ld: warning: main.o: requires executable stack (because the .note.GNU-stack section is executable) #8

Closed kas1e closed 1 year ago

kas1e commented 1 year ago

This is a new warning message introduced by GNU bin-utils version 2.39.

If we build anything with -Wa,--execstack (like, the E-UAE for example), then we will have such warning. That what developers says about:

The ELF linker will now generate a warning message if the stack is made executable. Similarly it will warn if the output binary contains a segment with all three of the read, write and execute permission bits set. These warnings are intended to help developers identify programs which might be vulnerable to attack via these executable memory regions.

So, or you remove -Wa,--execstack , or you have this warning. Binary will continue to works as expected, just, will have security flaw.

kas1e commented 1 year ago

This one were created just for future reference, so we close it to keep in database