aboutsummaryrefslogtreecommitdiff
path: root/binutils
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 /binutils
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 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/readelf.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index bf56cc1..7551db2 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2020-08-26 Nick Clifton <nickc@redhat.com>
+
+ PR 26405
+ * readelf.c (get_segment_type): Handle OpenBSD segment types.
+
2020-08-26 Alan Modra <amodra@gmail.com>
PR 26412
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 86be92e..7f228f1 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -4030,6 +4030,10 @@ get_segment_type (Filedata * filedata, unsigned long p_type)
case PT_GNU_RELRO: return "GNU_RELRO";
case PT_GNU_PROPERTY: return "GNU_PROPERTY";
+ case PT_OPENBSD_RANDOMIZE: return "OPENBSD_RANDOMIZE";
+ case PT_OPENBSD_WXNEEDED: return "OPENBSD_WXNEEDED";
+ case PT_OPENBSD_BOOTDATA: return "OPENBSD_BOOTDATA";
+
default:
if ((p_type >= PT_LOPROC) && (p_type <= PT_HIPROC))
{