aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorFrederic Cambus <fred@statdns.com>2024-02-12 13:44:59 +0100
committerNick Clifton <nickc@redhat.com>2024-02-12 17:09:13 +0000
commitd86205c3ec49b0edadfa2b3e568b3d852f0a6e1f (patch)
treeafff7c18368b4649597fe13aa4aa722f2830d15b /binutils
parente19e16103fb10ac28b15683f56c821cf1b349c1b (diff)
downloadbinutils-d86205c3ec49b0edadfa2b3e568b3d852f0a6e1f.zip
binutils-d86205c3ec49b0edadfa2b3e568b3d852f0a6e1f.tar.gz
binutils-d86205c3ec49b0edadfa2b3e568b3d852f0a6e1f.tar.bz2
Add support to readelf for the PT_OPENBSD_SYSCALLS segment type.
binutils * readelf.c (get_segment_type): Handle PT_OPENBSD_SYSCALLS segment type. include * elf/common.h (PT_OPENBSD_SYSCALLS): Define.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/readelf.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 438a45d..b74847a 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2024-02-12 Frederic Cambus <fred@statdns.com>
+
+ * readelf.c (get_segment_type): Handle PT_OPENBSD_SYSCALLS segment
+ type.
+
2024-01-26 Nick Clifton <nickc@redhat.com>
PR 31250
diff --git a/binutils/readelf.c b/binutils/readelf.c
index e3bf680..6e3ac1b 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -5105,6 +5105,7 @@ get_segment_type (Filedata * filedata, unsigned long p_type)
case PT_OPENBSD_RANDOMIZE: return "OPENBSD_RANDOMIZE";
case PT_OPENBSD_WXNEEDED: return "OPENBSD_WXNEEDED";
case PT_OPENBSD_NOBTCFI: return "OPENBSD_NOBTCFI";
+ case PT_OPENBSD_SYSCALLS: return "OPENBSD_SYSCALLS";
case PT_OPENBSD_BOOTDATA: return "OPENBSD_BOOTDATA";
default: