mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
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.
This commit is contained in:
@@ -472,6 +472,11 @@
|
||||
#define PT_GNU_RELRO (PT_LOOS + 0x474e552) /* Read-only after relocation */
|
||||
#define PT_GNU_PROPERTY (PT_LOOS + 0x474e553) /* GNU property */
|
||||
|
||||
/* OpenBSD segment types. */
|
||||
#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_BOOTDATA (PT_LOOS + 0x5a41be6) /* Section for boot arguments. */
|
||||
|
||||
/* Mbind segments */
|
||||
#define PT_GNU_MBIND_NUM 4096
|
||||
#define PT_GNU_MBIND_LO (PT_LOOS + 0x474e555)
|
||||
|
||||
Reference in New Issue
Block a user