SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
15
devel/llvm/patches/patch-tools_lld_ELF_ScriptParser_cpp
Normal file
15
devel/llvm/patches/patch-tools_lld_ELF_ScriptParser_cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
- In the linkers, collect objects in section "openbsd.mutable" and place
|
||||
them into a page-aligned region in the bss, with the right markers for
|
||||
kernel/ld.so to identify the region and skip making it immutable.
|
||||
|
||||
Index: tools/lld/ELF/ScriptParser.cpp
|
||||
--- tools/lld/ELF/ScriptParser.cpp.orig
|
||||
+++ tools/lld/ELF/ScriptParser.cpp
|
||||
@@ -1478,6 +1478,7 @@ unsigned ScriptParser::readPhdrType() {
|
||||
.Case("PT_GNU_EH_FRAME", PT_GNU_EH_FRAME)
|
||||
.Case("PT_GNU_STACK", PT_GNU_STACK)
|
||||
.Case("PT_GNU_RELRO", PT_GNU_RELRO)
|
||||
+ .Case("PT_OPENBSD_MUTABLE", PT_OPENBSD_MUTABLE)
|
||||
.Case("PT_OPENBSD_RANDOMIZE", PT_OPENBSD_RANDOMIZE)
|
||||
.Case("PT_OPENBSD_WXNEEDED", PT_OPENBSD_WXNEEDED)
|
||||
.Case("PT_OPENBSD_BOOTDATA", PT_OPENBSD_BOOTDATA)
|
Loading…
Add table
Add a link
Reference in a new issue