Unverified Commit 0329c1b6 authored by Fangrui Song's avatar Fangrui Song Committed by GitHub
Browse files

[ELF] --no-rosegment: don't mark read-only PT_LOAD segments executable (#81223)

Once we move `.lrodata` after .bss (#78521), or if we use `SECTIONS`
commands, certain read-only sections may be in their own PT_LOAD, not in
the traditional "text segment". Current --no-rosegment code may
unnecessarily mark read-only PT_LOAD executable. Fix it.
parent 407f9c06
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment