[llvm-branch-commits] [llvm] c5e1885 - [Support/ELF] Add OpenBSD PT_OPENBSD_SYSCALLS constant.

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Feb 19 16:18:58 PST 2024


Author: Frederic Cambus
Date: 2024-02-19T16:18:19-08:00
New Revision: c5e1885af0426897affc008fab174348eeca7af7

URL: https://github.com/llvm/llvm-project/commit/c5e1885af0426897affc008fab174348eeca7af7
DIFF: https://github.com/llvm/llvm-project/commit/c5e1885af0426897affc008fab174348eeca7af7.diff

LOG: [Support/ELF] Add OpenBSD PT_OPENBSD_SYSCALLS constant.

Reference: https://github.com/openbsd/src/blob/master/sys/sys/exec_elf.h
(cherry picked from commit 97eff26d0ca4d187a5efb8534af484dbb68bce30)

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 81cdd39afc6bab..f17ba75e3efa6a 100644
--- a/llvm/include/llvm/BinaryFormat/ELF.h
+++ b/llvm/include/llvm/BinaryFormat/ELF.h
@@ -1464,6 +1464,7 @@ enum {
   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_SYSCALLS = 0x65a3dbe9,  // System call sites.
   PT_OPENBSD_BOOTDATA = 0x65a41be6,  // Section for boot arguments.
 
   // ARM program header types.


        


More information about the llvm-branch-commits mailing list