Warnings about executable segment
Open
- 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
Assessment
This issue has not been assessed yet.