autc04 / Retro68

a gcc-based cross-compiler for classic 68K and PPC Macintoshes
GNU General Public License v3.0
537 stars 51 forks source link

ld warning after updating to latest GCC 12 version #224

Closed rhalkyard closed 3 months ago

rhalkyard commented 6 months ago

Thanks a lot for your work on updating Retro68 to use GCC 12! I just pulled the latest updates and my projects seem to all build fine (minus a few new warnings about my sloppy code :) ). But I've noticed that there's a new warning from ld:

/home/rhalkyard/Retro68-build/toolchain/lib/gcc/m68k-apple-macos/12.2.0/../../../../m68k-apple-macos/bin/ld.real: warning: software/tools/diags/Diags.code.bin.gdb has a LOAD segment with RWX permissions

Is this to be expected? The build still succeeds and all the output files look correct, so it's not a big deal to just ignore it, but I thought I'd make a note of it just in case.

autc04 commented 6 months ago

I think the warning is harmless, and we should therefore try to get rid of it.

theory/explanation: the ELF files specify that some code or data can be 'read, written and executed' (rwx), and this is