[llvm] 97bb272 - [Support/ELF] - Add OpenBSD PT_OPENBSD_MUTABLE constant.
Brad Smith via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 12 01:57:43 PST 2022
Author: Brad Smith
Date: 2022-11-12T04:54:41-05:00
New Revision: 97bb272c0830b7167a3e89a22d932c033d3eca19
URL: https://github.com/llvm/llvm-project/commit/97bb272c0830b7167a3e89a22d932c033d3eca19
DIFF: https://github.com/llvm/llvm-project/commit/97bb272c0830b7167a3e89a22d932c033d3eca19.diff
LOG: [Support/ELF] - Add OpenBSD PT_OPENBSD_MUTABLE constant.
OpenBSD commit for reference:
https://github.com/openbsd/src/commit/bd249b5664da50f0178adea78250a7a0d8ea6566
Added:
Modified:
llvm/include/llvm/BinaryFormat/ELF.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/BinaryFormat/ELF.h b/llvm/include/llvm/BinaryFormat/ELF.h
index 8387f96394a33..3a3d42e8b1706 100644
--- a/llvm/include/llvm/BinaryFormat/ELF.h
+++ b/llvm/include/llvm/BinaryFormat/ELF.h
@@ -1376,6 +1376,7 @@ enum {
PT_GNU_RELRO = 0x6474e552, // Read-only after relocation.
PT_GNU_PROPERTY = 0x6474e553, // .note.gnu.property notes sections.
+ PT_OPENBSD_MUTABLE = 0x65a3dbe5, // Like bss, but not immutable.
PT_OPENBSD_RANDOMIZE = 0x65a3dbe6, // Fill with random data.
PT_OPENBSD_WXNEEDED = 0x65a3dbe7, // Program does W^X violations.
PT_OPENBSD_BOOTDATA = 0x65a41be6, // Section for boot arguments.
More information about the llvm-commits
mailing list