]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libsframe: add new dump_sframe_reloc
authorIndu Bhagat <indu.bhagat@oracle.com>
Tue, 4 Feb 2025 19:57:24 +0000 (11:57 -0800)
committerIndu Bhagat <indu.bhagat@oracle.com>
Thu, 6 Feb 2025 15:34:01 +0000 (07:34 -0800)
commit078d38682291b06c44a3e091ad87c302d9385eb4
tree3852d6dc6a69b0544db6f1c52dca317f0f2e3db0
parent9a7ed136a9b405408ab20e01f2cab415e7a39b5b
libsframe: add new dump_sframe_reloc

PR libsframe/32589 - function start address is zero in SFrame section dump

This new function dumps the contents of a relocated SFrame section in
human readable text.

Even after the section contents are relocated, there is need to fixup
the function start address, which is what sframe_fde_tbl_reloc_fixup ()
is about.  This function is libsframe internal only and is not exposed.

Some caution is necessary though in making sure this is done in a
version aware manner, when future versions of the SFrame format are
implemented.

libsframe/
        * libtool.version: Bump revision and age.  Use 1:1:1.
        * libsframe.ver: Add new API dump_sframe_reloc.
        * sframe-dump.c (dump_sframe):
        (dump_sframe_reloc): New definition.
        * sframe-impl.h (sframe_fde_tbl_reloc_fixup): New declaration.
        * sframe.c (sframe_fde_tbl_reloc_fixup): New definition.

include/
        * sframe-api.h (dump_sframe_reloc): New declaration.
include/sframe-api.h
libsframe/libsframe.ver
libsframe/libtool-version
libsframe/sframe-dump.c
libsframe/sframe-impl.h
libsframe/sframe.c