diff options
author | Clément Chigot <chigot@adacore.com> | 2022-11-18 15:45:55 +0100 |
---|---|---|
committer | Clément Chigot <chigot@adacore.com> | 2023-03-16 15:01:05 +0100 |
commit | e263a66b01a697632a51ad5ec1e6c08071e3e5ec (patch) | |
tree | 3166d0b9ac77e991d7fcac73950ed4c786328c03 /include/elf | |
parent | configure: add new target aarch64-*-nto* (diff) | |
download | binutils-gdb-e263a66b01a697632a51ad5ec1e6c08071e3e5ec.tar.gz binutils-gdb-e263a66b01a697632a51ad5ec1e6c08071e3e5ec.tar.bz2 binutils-gdb-e263a66b01a697632a51ad5ec1e6c08071e3e5ec.zip |
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.
Diffstat (limited to 'include/elf')
-rw-r--r-- | include/elf/common.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/elf/common.h b/include/elf/common.h index d19d6f9927d..630d212bbb2 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". */ |