From: Frederic Cambus <fred@statdns.com>
To: binutils@sourceware.org
Subject: [PATCH] Add support to readelf for the PT_OPENBSD_SYSCALLS segment type.
Date: Mon, 12 Feb 2024 13:44:59 +0100 [thread overview]
Message-ID: <ZcoSy1kMuaYoEg2-@hydra> (raw)
binutils * readelf.c (get_segment_type): Handle PT_OPENBSD_SYSCALLS segment type.
include * elf/common.h (PT_OPENBSD_SYSCALLS): Define.
---
binutils/ChangeLog | 5 +++++
binutils/readelf.c | 1 +
include/ChangeLog | 4 ++++
include/elf/common.h | 1 +
4 files changed, 11 insertions(+)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 438a45d77a8..b74847adcee 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 e3bf68064c1..6e3ac1baf6d 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:
diff --git a/include/ChangeLog b/include/ChangeLog
index 4b667bfa307..11c4b321a49 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2024-02-12 Frederic Cambus <fred@statdns.com>
+
+ * elf/common.h (PT_OPENBSD_SYSCALLS): Define.
+
2024-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
* opcode/bpf.h (enum bpf_insn_id): Remove BPF_INSN_LDINDDW and
diff --git a/include/elf/common.h b/include/elf/common.h
index 6a66456cd22..832f9bd510f 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -496,6 +496,7 @@
#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_NOBTCFI (PT_LOOS + 0x5a3dbe8) /* No branch target CFI. */
+#define PT_OPENBSD_SYSCALLS (PT_LOOS + 0x5a3dbe9) /* System call sites. */
#define PT_OPENBSD_BOOTDATA (PT_LOOS + 0x5a41be6) /* Section for boot arguments. */
/* Mbind segments */
--
2.43.0
next reply other threads:[~2024-02-12 12:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-12 12:44 Frederic Cambus [this message]
2024-02-12 17:10 ` Nick Clifton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZcoSy1kMuaYoEg2-@hydra \
--to=fred@statdns.com \
--cc=binutils@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).