From: guenther Date: Thu, 14 Jul 2016 06:03:46 +0000 (+0000) Subject: Add PT_GNU_RELRO, for ld.so work X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c67fae5df63714dc9239db2e64cb6b350bf7550f;p=openbsd Add PT_GNU_RELRO, for ld.so work ok millert@ kettenis@ --- diff --git a/sys/sys/exec_elf.h b/sys/sys/exec_elf.h index b8606acfc7e..f1c5d48dc16 100644 --- a/sys/sys/exec_elf.h +++ b/sys/sys/exec_elf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_elf.h,v 1.58 2016/05/29 00:48:05 deraadt Exp $ */ +/* $OpenBSD: exec_elf.h,v 1.59 2016/07/14 06:03:46 guenther Exp $ */ /* * Copyright (c) 1995, 1996 Erik Theisen. All rights reserved. * @@ -426,6 +426,8 @@ typedef struct { #define PT_LOPROC 0x70000000 /* reserved range for processor */ #define PT_HIPROC 0x7fffffff /* specific segment types */ +#define PT_GNU_RELRO 0x6474e552 /* Read-only after relocation */ + #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 */