[PATCH, V2 3/9] include: libsframe: add APIs for offsetof FDE func start addr field

Jan Beulich jbeulich@suse.com
Fri Jun 6 09:49:43 GMT 2025


On 04.06.2025 09:08, Indu Bhagat via Binutils wrote:
> @@ -1016,6 +1017,29 @@ sframe_decoder_get_fixed_ra_offset (sframe_decoder_ctx *ctx)
>    return dhp->sfh_cfa_fixed_ra_offset;
>  }
>  
> +/* Get the offset of the sfde_func_start_address field (from the start of the
> +   on-disk layout of the SFrame section) of the FDE at FUNC_IDX in the decoder
> +   context DCTX.
> +
> +   If FUNC_IDX is more than the number of SFrame FDEs in the section, sets
> +   error code in ERRP, but returns the (hypothetical) offset.  This is useful
> +   for the linker when arranging input FDEs into the output section to be
> +   emitted.  */

Is this somewhat odd behavior really needed for both encoder and decoder sides?

Jan


More information about the Binutils mailing list