]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libsframe: make flip_header version aware
authorIndu Bhagat <indu.bhagat@oracle.com>
Thu, 16 Oct 2025 22:30:58 +0000 (15:30 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Fri, 17 Oct 2025 06:46:58 +0000 (23:46 -0700)
commitf7e73777151e48239a637fefd7af36f1a124b697
treed9de13b7e2c5c2603c0bd3905a68c514888f54bb
parent6b93f9c11574f63171597e6705673d3c6ab6661d
libsframe: make flip_header version aware

Future versions of the format may have alternative representation of an
FDE.  As the format evolves, endian flipping will need to be version
aware.

flip_header now takes the SFrame version as argument.  Currently unused,
this argument will be used later when we introduce SFrame V3.

SFrame encoder, at the momemnt, writes the SFrame data in the most recent
format version by default.

libsframe/
        * sframe.c (flip_header): Make version aware.
        (sframe_decode): Adjust usage of flup_header.
        (sframe_encoder_write): Likewise.
libsframe/sframe.c