]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libsframe: fix checks in flip_fde
authorIndu Bhagat <indu.bhagat@oracle.com>
Sun, 9 Nov 2025 07:33:22 +0000 (23:33 -0800)
committerIndu Bhagat <indu.bhagat@oracle.com>
Sun, 9 Nov 2025 07:33:22 +0000 (23:33 -0800)
commitb263aca0a5f7ea6286ed860b8a0d5b06b7a6d925
tree5907f7fc0297d3331fab7d38506beb7165e785ad
parentf081af0715900fa48ebfc3b1d9ece297d024e303
libsframe: fix checks in flip_fde

Adjust the sanity checks for flip_fde workflow and optional trailing
section padding to account for the case of ihp->sfh_fdeoff != 0 or
ihp->sfh_freoff != total FDEs size.

Reviewed-by: Jens Remus <jremus@linux.ibm.com>
libsframe/
        * sframe.c (flip_sframe): Fix checks in flip_fde to accommodate
cases when sfh_fdeoff != 0 or when SFrame FREs are placed after
a gap from SFrame FDEs.
libsframe/sframe.c