Binutils New Warning on LD Scripts

While doing a git bisect to identify a breakage in gcc, I noticed that the binutils master is producing this warning when linking every test for the m68k/uC5282 BSP. I expect this will not be the only BSP with this warning and I don’t know the fix offhand. I am starting this topic to get suggestions for the needed tweak to the linker script and leave a bread crumb when we see this again.

/home/joel/test-gcc/install-bisect/lib/gcc/m68k-rtems7/13.0.1/../../../../m68k-rtems7/bin/ld: warning: /home/joel/rtems-work/rtems/build/m68k/uC5282/testsuites/validation/ts-validation-no-clock-0.exe has a LOAD segment with RWX permissions

Help appreciated.

I think it’s the same thing as this:

Thanks. It’s the same type of issue for sure. I also found https://stackoverflow.com/questions/73429929/gnu-linker-elf-has-a-load-segment-with-rwx-permissions-embedded-arm-project which has a permissions annotation I don’t remember ever seeing and this BSP isn’t using it.

The file is bsps/m68k/uC5282/start/linkcmds if you spot anything. I’m still using git bisect on gcc to find another issue this BSP tripped across.