--- nono/host/elf.h 2026/04/29 17:04:30 1.1.1.1 +++ nono/host/elf.h 2026/04/29 17:04:43 1.1.1.2 @@ -1,5 +1,6 @@ // NetBSD の elf.h -> sys/exec_elf.h をベースに書き換えたもの /* $NetBSD: exec_elf.h,v 1.161 2019/06/07 23:35:52 christos Exp $ */ +/* $OpenBSD: exec_elf.h,v 1.87 2019/12/01 13:10:51 jsg Exp $ */ /*- * Copyright (c) 1994 The NetBSD Foundation, Inc. @@ -361,6 +362,12 @@ typedef struct { #define PT_MIPS_REGINFO 0x70000000 #define PT_MIPS_ABIFLAGS 0x70000003 +/* From OpenBSD/src/sys/sys/exec_elf.h */ +#define PT_OPENBSD_RANDOMIZE 0x65a3dbe6 /* fill with random data */ +#define PT_OPENBSD_WXNEEDED 0x65a3dbe7 /* program performs W^X violations */ +#define PT_OPENBSD_BOOTDATA 0x65a41be6 /* section for boot arguments */ + + /* p_flags */ #define PF_R 0x4 /* Segment is readable */ #define PF_W 0x2 /* Segment is writable */