CubeIDE 2.0.0 and LOAD segment with RWX permissions
Hello,
I moved an existing project from 1.14 to 2.0.0. To be clear I created a new workspace, then a new project in 2.0.0 in order to prevent any non relevant bit taken from 1.14 (at the project level) and copied only the source files from 1.14 to 2.0.0. The linker file comes from 2.0.0, as well as the startup file (which is not relevant here).
When I compile I get the error that elf has LOAD segment with RWX permissions. The linker file has the READONLY moniker where they are needed, but I have 3 functions that are running from RAM, with __attribute__ ((section(".RamFunc"))). Obviously these are executables, so it is expected to have RWX in the .data section, where .RamFunc resides.
How can I get rid of this warning, please ?
Even though it is not relevant, the MCU is an STM32G0B1CB.
