From e263a66b01a697632a51ad5ec1e6c08071e3e5ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Chigot?= Date: Fri, 18 Nov 2022 15:45:55 +0100 Subject: readelf: add support for QNT_STACK note subsections QNX provides some .note subsections. QNT_STACK is the one controling the stack allocation. bfd/ChangeLog: * elf.c (BFD_QNT_CORE_INFO): Delete. (BFD_QNT_CORE_STATUS): Likewise. (BFD_QNT_CORE_GREG): Likewise. (BFD_QNT_CORE_FPREG): Likewise. (elfcore_grok_nto_note): Replace BFD_QNT_* by QNT_*. binutils/ChangeLog: * readelf.c (get_qnx_elfcore_note_type): New function. (print_qnx_note): New function. (process_note): Add support for QNX support. include/ChangeLog: * elf/common.h (QNT_DEBUG_FULLPATH): New define. (QNT_DEBUG_RELOC): New define. (QNT_STACK): New define. (QNT_GENERATOR): New define. (QNT_DEFAULT_LIB): New define. (QNT_CORE_SYSINFO): New define. (QNT_CORE_INFO): New define. (QNT_CORE_STATUS): New define. (QNT_CORE_GREG): New define. (QNT_CORE_FPREG): New define. (QNT_LINK_MAP): New define. --- include/elf/common.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/elf') diff --git a/include/elf/common.h b/include/elf/common.h index d19d6f9..630d212 100644 --- a/include/elf/common.h +++ b/include/elf/common.h @@ -768,6 +768,19 @@ #define NT_OPENBSD_XFPREGS 22 #define NT_OPENBSD_WCOOKIE 23 +/* Note segments for core files on QNX systems. Note name + must start with "QNX". */ +#define QNT_DEBUG_FULLPATH 1 +#define QNT_DEBUG_RELOC 2 +#define QNT_STACK 3 +#define QNT_GENERATOR 4 +#define QNT_DEFAULT_LIB 5 +#define QNT_CORE_SYSINFO 6 +#define QNT_CORE_INFO 7 +#define QNT_CORE_STATUS 8 +#define QNT_CORE_GREG 9 +#define QNT_CORE_FPREG 10 +#define QNT_LINK_MAP 11 /* Note segments for core files on Solaris systems. Note name must start with "CORE". */ -- cgit v1.1