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.
This commit is contained in:
Frederic Cambus 2024-02-12 13:44:59 +01:00 committed by Nick Clifton
parent e19e16103f
commit d86205c3ec
4 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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:

View File

@ -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

View File

@ -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 */