Home
Home copied to clipboard
Investigate and fix LOAD segment with RWX permissions
Target name(s)
ChibiOS
Firmware version
GCC12.x
Was working before? On which version?
GCC 11.x
Device capabilities
N/A
Description
The included version of binutils for GCC 12.x adds a build warning for LOAD segment with RWX permissions
This is potentially harmless, but given security, we should evaluate it.
A blog that explains the reasons and potential fixes is: https://www.redhat.com/en/blog/linkers-warnings-about-executable-stacks-and-segments
How to reproduce
No response
Expected behaviour
No warning produced.
Screenshots

Aditional information
No response
Potentially "fixed" by ChibiOS, although they have just decided to ignore the warning. Need to check.