Same problem as nRF Connect SDK link error with GCC 12 , which was 3 years ago...
Our app builds fine until we enable MCUboot, when we get the above warning, and being good people we have CONFIG_COMPILER_WARNINGS_AS_ERRORS enabled, which means our application can't build.
For now I've added target_link_options(app PUBLIC "LINKER:--no-warn-rwx-segments") to my CMakeLists.txt, but this isn't exactly an optimal solution, especially given how long it took to find it, and I'll have to remember the fix for every other project going forward.
Is there a plan to fix the linker script so it doesn't generate the error?