diff options
author | Frederic Cambus <fred@statdns.com> | 2021-03-12 14:37:51 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-03-12 14:37:51 +0000 |
commit | be3b926d8d2dde16a55e9e303fadf95164e13ebf (patch) | |
tree | 32c27527b8626bfe3c2023d755e82e3de15eee3b /include | |
parent | 7fce7ea986bc66d4af3c21d4f6ab2a987f3aac46 (diff) | |
download | gdb-be3b926d8d2dde16a55e9e303fadf95164e13ebf.zip gdb-be3b926d8d2dde16a55e9e303fadf95164e13ebf.tar.gz gdb-be3b926d8d2dde16a55e9e303fadf95164e13ebf.tar.bz2 |
Add values for NetBSD .note.netbsd.ident notes (PaX).
* elf/common.h (NT_NETBSD_PAX, NT_NETBSD_PAX_MPROTECT)
(NT_NETBSD_PAX_NOMPROTECT, NT_NETBSD_PAX_GUARD, NT_NETBSD_PAX_NOGUARD)
(NT_NETBSD_PAX_ASLR, NT_NETBSD_PAX_NOASLR): Define.
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 6 | ||||
-rw-r--r-- | include/elf/common.h | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 3a40b16..b1f7e63 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,9 @@ +2021-03-12 Frederic Cambus <fred@statdns.com> + + * elf/common.h (NT_NETBSD_PAX, NT_NETBSD_PAX_MPROTECT) + (NT_NETBSD_PAX_NOMPROTECT, NT_NETBSD_PAX_GUARD, NT_NETBSD_PAX_NOGUARD) + (NT_NETBSD_PAX_ASLR, NT_NETBSD_PAX_NOASLR): Define. + 2021-03-12 Clément Chigot <clement.chigot@atos.net> * coff/internal.h (struct internal_aouthdr): Add new fields. diff --git a/include/elf/common.h b/include/elf/common.h index 4cb3748..015535a 100644 --- a/include/elf/common.h +++ b/include/elf/common.h @@ -916,6 +916,15 @@ #define NT_NETBSD_IDENT 1 #define NT_NETBSD_MARCH 5 +/* Values for NetBSD .note.netbsd.ident notes. Note name is "PaX". */ +#define NT_NETBSD_PAX 3 +#define NT_NETBSD_PAX_MPROTECT 0x01 /* Force enable Mprotect. */ +#define NT_NETBSD_PAX_NOMPROTECT 0x02 /* Force disable Mprotect. */ +#define NT_NETBSD_PAX_GUARD 0x04 /* Force enable Segvguard. */ +#define NT_NETBSD_PAX_NOGUARD 0x08 /* Force disable Segvguard. */ +#define NT_NETBSD_PAX_ASLR 0x10 /* Force enable ASLR. */ +#define NT_NETBSD_PAX_NOASLR 0x20 /* Force disable ASLR. */ + /* Values for OpenBSD .note.openbsd.ident notes. Note name is "OpenBSD". */ #define NT_OPENBSD_IDENT 1 |