[all-commits] [llvm/llvm-project] 0329c1: [ELF] --no-rosegment: don't mark read-only PT_LOAD...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Fri Feb 9 10:38:15 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0329c1b6d838ec983f215244549b3c5ff2d5fb51
https://github.com/llvm/llvm-project/commit/0329c1b6d838ec983f215244549b3c5ff2d5fb51
Author: Fangrui Song <i at maskray.me>
Date: 2024-02-09 (Fri, 09 Feb 2024)
Changed paths:
M lld/ELF/Writer.cpp
M lld/test/ELF/segments.s
Log Message:
-----------
[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.
More information about the All-commits
mailing list