readelf/objdump: support for SFrame section
authorIndu Bhagat <indu.bhagat@oracle.com>
Tue, 15 Nov 2022 23:07:09 +0000 (15:07 -0800)
committerIndu Bhagat <indu.bhagat@oracle.com>
Tue, 15 Nov 2022 23:50:05 +0000 (15:50 -0800)
commit42b6953bbad652d3f7cba405c941ad9c6eab26b0
tree7f1276452e23a847be0105dba5bf563b1f8e3457
parentcf0e0a0ba91664b680dff1e310f24dbe6447bd4c
readelf/objdump: support for SFrame section

This patch adds support for SFrame in readelf and objdump. The arguments
of --sframe are optional for both readelf and objdump.

include/ChangeLog:

* sframe-api.h (dump_sframe): New function declaration.

ChangeLog:

* binutils/Makefile.am: Add dependency on libsframe for
readelf and objdump.
* binutils/Makefile.in: Regenerate.
* binutils/doc/binutils.texi: Document --sframe=[section].
* binutils/doc/sframe.options.texi: New file.
* binutils/objdump.c: Add support for SFrame format.
* binutils/readelf.c: Likewise.
* include/sframe-api.h: Add new API for dumping .sframe
section.
* libsframe/Makefile.am: Add sframe-dump.c.
* libsframe/Makefile.in: Regenerate.
* libsframe/sframe-dump.c: New file.
binutils/Makefile.am
binutils/Makefile.in
binutils/doc/binutils.texi
binutils/doc/sframe.options.texi [new file with mode: 0644]
binutils/objdump.c
binutils/readelf.c
include/sframe-api.h
libsframe/Makefile.am
libsframe/Makefile.in
libsframe/sframe-dump.c [new file with mode: 0644]