]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[SFrame-V3] libsframe: add V3 APIs for adding and getting SFrame FDE
authorIndu Bhagat <indu.bhagat@oracle.com>
Fri, 16 Jan 2026 00:41:50 +0000 (16:41 -0800)
committerIndu Bhagat <indu.bhagat@oracle.com>
Fri, 16 Jan 2026 01:02:24 +0000 (17:02 -0800)
commit20477cd1038412d723f0e6f2a2bfef1ab2ea0aaf
treee6790ddce614a07104ecdc71fb01f0e88754013c
parent6f68bf969faf7874cfe301ede8b097e860beece3
[SFrame-V3] libsframe: add V3 APIs for adding and getting SFrame FDE

(Similar to V2) Add two new APIs for adding and getting SFrame FDE:
 - sframe_encoder_add_funcdesc_v3
 - sframe_decoder_get_funcdesc_v3

Note the argument for the function start address is int64_t instead of
int32_t (the latter is used in sframe_encoder_add_funcdesc_v2 and
sframe_encoder_get_funcdesc_v2).  The new V3 APIs will be used in a
subsequent commit to extend SFrame V3 to support text > 2 GiB by
allowing int64_t offsets by default.

Similar to the analogous V2 APIs, they return 0 on success and
SFRAME_ERR (in case of sframe_decoder_get_funcdesc_v3) or error code (in
case of sframe_encoder_add_funcdesc_v3) on failure.

Reviewed-by: Jens Remus <jremus@linux.ibm.com>
include/
* sframe-api.h (sframe_decoder_get_funcdesc_v3): New
declaration.
(sframe_encoder_add_funcdesc_v3): Likewise.
libsframe/
* libsframe.ver: Add the new APIs.
* sframe.c (sframe_decoder_get_funcdesc_v3): New definition.
(sframe_encoder_add_funcdesc_v3): Likewise.
include/sframe-api.h
libsframe/libsframe.ver
libsframe/sframe.c