[Support/ELF] - Add OpenBSD PT_OPENBSD_RANDOMIZE, PT_OPENBSD_WXNEEDED constants.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 11 Oct 2016 11:53:33 +0000 (11:53 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 11 Oct 2016 11:53:33 +0000 (11:53 +0000)
Docs for reference:
http://man.openbsd.org/OpenBSD-current/man5/elf.5
https://github.com/openbsd/src/commit/2a5a8fc7e30928c2cff57cfe5fb491c90d8478ad

llvm-svn: 283872

llvm/include/llvm/Support/ELF.h

index 826c0de..324bcd5 100644 (file)
@@ -1036,6 +1036,9 @@ enum {
   PT_SUNW_EH_FRAME = 0x6474e550,
   PT_SUNW_UNWIND   = 0x6464e550,
 
+  PT_OPENBSD_RANDOMIZE = 0x65a3dbe6, // Fill with random data.
+  PT_OPENBSD_WXNEEDED  = 0x65a3dbe7, // Program does W^X violations.
+
   PT_GNU_STACK  = 0x6474e551, // Indicates stack executability.
   PT_GNU_RELRO  = 0x6474e552, // Read-only after relocation.