]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libsframe: use offsets to FDE and FRE sub-sections
authorIndu Bhagat <indu.bhagat@oracle.com>
Sat, 23 Aug 2025 19:09:44 +0000 (12:09 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Sat, 23 Aug 2025 19:10:31 +0000 (12:10 -0700)
commit0d90e0ce80bdc10408f15eb6d8380da46f33891d
treeca7b1f825dba0646dff445ff05168ba3d14e67d6
parentc8a03d6406a14d5e8446ca8f213ff04243646261
libsframe: use offsets to FDE and FRE sub-sections

In SFrame format, the SFrame FDEs begin at an offset 'sfh_fdeoff' from
the end of the SFrame header.  Similarly, the SFrame FREs begin at an
offset 'sfh_freoff' from the end of the SFrame header.

While the GNU assembler generates these subsections such that sfd_fdeoff
is zero, the correct way to decode the SFrame section (conforming with
the specification) is to use both sfh_fdeoff and sfh_freoff in
sframe_decode.

libsframe/
* sframe.c (sframe_decode): Use offsets to SFrame FDE and FRE
sub-sections as applicable.
libsframe/sframe.c