apache / apache/nuttx

Warnings about executable segment

Open
#10,722 1 comment 0 reactions 1 assignee Claimed by @pkarashchenko View on GitHub
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

Binutils 2.39 introduced a new warning about executable segments: `warning: has a LOAD segment with RWX permissions`. This warning is emitted when a segment has both write and execute permissions.

There are two ways to fix this warning:

1. Just ignore it by `--no-warn-rwx-segments`. This warning is not an error, and it does not affect the generated binary.
2. Add essential gap between the `.text` and `.data` sections.

References: https://www.redhat.com/en/blog/linkers-warnings-about-executable-stacks-and-segments

Which should we do?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.