]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
include: libsframe: add APIs for offsetof FDE func start addr field
authorIndu Bhagat <indu.bhagat@oracle.com>
Thu, 22 May 2025 22:24:47 +0000 (15:24 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Wed, 25 Jun 2025 19:56:19 +0000 (12:56 -0700)
commitad4b7df7a9e8a2c7428fcfafada68ca717654005
treed7cdd17b976f26529a1c16a4e43dbf3a38e0eeeb
parent62f460aa05a5f5a60cdc19c274983a0f3fad656f
include: libsframe: add APIs for offsetof FDE func start addr field

These APIs will be later used by the linker to arrange SFrame FDEs in
the output SFrame section.

include/
        * sframe-api.h (sframe_decoder_get_offsetof_fde_start_addr): New
declaration.
        (sframe_encoder_get_offsetof_fde_start_addr): Likewise.

libsframe/
        * libsframe.ver: List the new APIs.
        * sframe.c (sframe_decoder_get_offsetof_fde_start_addr): New
definition.
        (sframe_encoder_get_offsetof_fde_start_addr): Likewise.

---
[No changes in V4]

[No changes in V3]

[Changes in V2]
  - Keep the function level comments in sync.
  - Use an additional offsetof to convey the semantics clearly.
[End of changes in V2]
include/sframe-api.h
libsframe/libsframe.ver
libsframe/sframe.c