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

Disable warning about LOAD segments having RWX permission to be default on OS4. #3

Closed kas1e closed 1 year ago

kas1e commented 1 year ago

Currently, if we just use "ld" for linking, we do have such a warning:

ppc-amigaos-ld: warning: test_new has a LOAD segment with RWX permissions

This is something introduced in the latest binutils (since 2.39), and can be disabled by just --no-warn-rwx-segments.

So to not confuse os4 developers and newbies, better to make such disable be a default for us.

kas1e commented 1 year ago

Turns out, that this is warning produced by usage of -N switch of LD, which mean exactly that:

-N
--omagic
Set the text and data sections to be readable and writable.

So linker warn us of course about, which is correct thing. Without -N usage everything fine.

So, no issue with new binutils then.