aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-08-26 15:13:41 +0100
committerNick Clifton <nickc@redhat.com>2020-08-26 15:15:10 +0100
commit3eba3ef344b6d22187e50be0dcea883e8254609d (patch)
tree4923bdee1f828dbc9d993edfef51ba89d680d009 /include
parente637b7ba2f8399ba94721be3f1765b471b6a67c2 (diff)
downloadgdb-3eba3ef344b6d22187e50be0dcea883e8254609d.zip
gdb-3eba3ef344b6d22187e50be0dcea883e8254609d.tar.gz
gdb-3eba3ef344b6d22187e50be0dcea883e8254609d.tar.bz2
Add support to readelf for the OpenBSD segment types.
PR 26405 binutils* readelf.c (get_segment_type): Handle OpenBSD segment types. include * elf/common.h (PT_OPENBSD_BOOTDATA): Define. (PT_OPENBSD_RANDOMIZE): Define. (PT_OPENBSD_WXNEEDED): Define.
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog7
-rw-r--r--include/elf/common.h5
2 files changed, 12 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index b51a186..5b2bb61 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,10 @@
+2020-08-26 Nick Clifton <nickc@redhat.com>
+
+ PR 26405
+ * elf/common.h (PT_OPENBSD_BOOTDATA): Define.
+ (PT_OPENBSD_RANDOMIZE): Define.
+ (PT_OPENBSD_WXNEEDED): Define.
+
2020-08-26 Alan Modra <amodra@gmail.com>
PR 26458
diff --git a/include/elf/common.h b/include/elf/common.h
index efef412..8050581 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -472,6 +472,11 @@
#define PT_GNU_RELRO (PT_LOOS + 0x474e552) /* Read-only after relocation */
#define PT_GNU_PROPERTY (PT_LOOS + 0x474e553) /* GNU property */
+/* OpenBSD segment types. */
+#define PT_OPENBSD_RANDOMIZE (PT_LOOS + 0x5a3dbe6) /* Fill with random data. */
+#define PT_OPENBSD_WXNEEDED (PT_LOOS + 0x5a3dbe7) /* Program does W^X violations. */
+#define PT_OPENBSD_BOOTDATA (PT_LOOS + 0x5a41be6) /* Section for boot arguments. */
+
/* Mbind segments */
#define PT_GNU_MBIND_NUM 4096
#define PT_GNU_MBIND_LO (PT_LOOS + 0x474e555)