]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/elf.c
readelf: add support for QNT_STACK note subsections
authorClément Chigot <chigot@adacore.com>
Fri, 18 Nov 2022 14:45:55 +0000 (15:45 +0100)
committerClément Chigot <chigot@adacore.com>
Thu, 16 Mar 2023 14:01:05 +0000 (15:01 +0100)
commite263a66b01a697632a51ad5ec1e6c08071e3e5ec
tree3166d0b9ac77e991d7fcac73950ed4c786328c03
parent567e0dfb0166c070d4d59b70ecb823fd9100f9a6
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.
bfd/elf.c
binutils/readelf.c
include/elf/common.h