cancel
Showing results for 
Search instead for 
Did you mean: 

elf has a LOAD segment with RWX permissions when using .RamFunc functions

RobDeatherage
Associate II

I've seen other posts to resolve the compiler warning of "elf has a LOAD segment with RWX permissions", but I'm receiving this warning only when calling functions in RAM using the .RamFunc segment attribute.

 

From the map file I've verified the function is being loaded into RAM.  I could disable the warning, but would like to understand the underlying issue.

 

I'm working with the latest STMCubeIDE version 1.16.0, but also saw this in 1.15.0.  I'm building code for the STM3H735 and STM32H745 families.

11 REPLIES 11
Iampritesh
Associate

Hi,

try creating another project with the default setting, don't add any drivers and copy yourController_FLASH.Id (e.g., yourController = STM32F401 ) content to your project's file & rebuild project. That should be fine afterwards.

I had the same problem and I generated new .ld files and saw there was some "(READONLY)" missing in my files.
There is also another thread about this problem: https://community.st.com/t5/stm32cubeide-mcus/stm32cubeide-1-15-0-elf-has-a-load-segment-with-rwx-permissions/td-p/652335