From 73b22419edd563cf26bc8688c3f04fb3cf414cb0 Mon Sep 17 00:00:00 2001 From: Frederic Cambus Date: Thu, 28 Sep 2023 13:39:01 +0100 Subject: Add support to readelf for the PT_OPENBSD_NOBTCFI segment type. --- include/ChangeLog | 4 ++++ include/elf/common.h | 1 + 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/ChangeLog b/include/ChangeLog index eb54da4..90ee736 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2023-09-28 Frederic Cambus + + * elf/common.h (PT_OPENBSD_NOBTCFI): Define. + 2023-08-02 Tom Tromey * coff/x86_64.h (COFF_X86_64_H): Add include guard. diff --git a/include/elf/common.h b/include/elf/common.h index 932ea94..2edfb15 100644 --- a/include/elf/common.h +++ b/include/elf/common.h @@ -495,6 +495,7 @@ #define PT_OPENBSD_MUTABLE (PT_LOOS + 0x5a3dbe5) /* Like bss, but not immutable. */ #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_BOOTDATA (PT_LOOS + 0x5a41be6) /* Section for boot arguments. */ /* Mbind segments */ -- cgit v1.1