Home icon indicating copy to clipboard operation
Home copied to clipboard

Investigate and fix LOAD segment with RWX permissions

Open networkfusion opened this issue 2 years ago • 1 comments

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

image

Aditional information

No response

networkfusion avatar May 03 '23 15:05 networkfusion

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

networkfusion avatar Jun 02 '23 00:06 networkfusion