1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

sframe: Add support for SFRAME_F_FDE_FUNC_START_PCREL flag

The Sframe V2 has a new errata which introduces the
SFRAME_F_FDE_FUNC_START_PCREL flag. This flag indicates the encoding
of the SFrame FDE function start address field like this:

- if set, sfde_func_start_address field contains the offset in bytes
to the start PC of the associated function from the field itself.

- if unset, sfde_func_start_address field contains the offset in bytes
to the start PC of the associated function from the start of the
SFrame section.

Signed-off-by: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com>
Reviewed-by: Sam James <sam@gentoo.org>
This commit is contained in:
Claudiu Zissulescu
2025-07-22 12:55:51 -03:00
committed by Adhemerval Zanella
parent 20528165bd
commit 072b5a9922
3 changed files with 118 additions and 31 deletions

View File

@@ -99,6 +99,12 @@ __sframe_fre_get_ra_offset (sframe_decoder_ctx *dctx,
sframe_frame_row_entry *fre,
_Unwind_Reason_Code *errp);
/* Get the offset of the sfde_func_start_address field. */
extern uint32_t
__sframe_decoder_get_offsetof_fde_start_addr (sframe_decoder_ctx *dctx,
uint32_t func_idx,
_Unwind_Reason_Code *errp);
#ifdef __cplusplus
}
#endif