[llvm] 06ef0a3 - [Support/ELF] - Add OpenBSD PT_OPENBSD_NOBTCFI constant.
Brad Smith via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 17 14:40:59 PDT 2023
Author: Brad Smith
Date: 2023-06-17T17:38:28-04:00
New Revision: 06ef0a3342d3e75f98c2a1844786b18ed2202c95
URL: https://github.com/llvm/llvm-project/commit/06ef0a3342d3e75f98c2a1844786b18ed2202c95
DIFF: https://github.com/llvm/llvm-project/commit/06ef0a3342d3e75f98c2a1844786b18ed2202c95.diff
LOG: [Support/ELF] - Add OpenBSD PT_OPENBSD_NOBTCFI constant.
OpenBSD commit for reference:
https://github.com/openbsd/src/commit/7b407c478fab53a6d9a091887c828c3f7b3f8b46
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 fbe1d1fabdab7..2cb2d8fe63ec0 100644
--- a/llvm/include/llvm/BinaryFormat/ELF.h
+++ b/llvm/include/llvm/BinaryFormat/ELF.h
@@ -1409,6 +1409,7 @@ enum {
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_NOBTCFI = 0x65a3dbe8, // Do not enforce branch target CFI.
PT_OPENBSD_BOOTDATA = 0x65a41be6, // Section for boot arguments.
// ARM program header types.
More information about the llvm-commits
mailing list