[PATCH] gas: sframe: fix PR gas/33277
Jens Remus
jremus@linux.ibm.com
Tue Nov 4 14:38:50 GMT 2025
On 11/3/2025 9:25 PM, Indu Bhagat wrote:
> In SFrame stack trace format, the representation of stack offsets allows
> for either 1-byte, 2-byte or 4-byte integers.
>
> Add new internal function sframe_fre_stack_offset_bound_p () which
> checks if the given offset is within bounds (at most as a 4-byte
> integer). Use this to check if CFA offset is within bounds, if not skip
> emitting the FDE, and warn the user.
>
> gas/
> PR gas/33277
> * gen-sframe.c (sframe_fre_stack_offset_bound_p): New
> definition.
> (sframe_xlate_do_def_cfa): Check bounds of offset.
> (sframe_xlate_do_def_cfa_offset): Likewise.
>
> gas/testsuite/
> PR gas/33277
> * gas/cfi-sframe/cfi-sframe.exp: Add new test.
> * gas/cfi-sframe/cfi-sframe-x86_64-empty-pr33277.d: Likewise.
> * gas/cfi-sframe/cfi-sframe-x86_64-empty-pr33277.s: Likewise.
Reviewed-by: Jens Remus <jremus@linux.ibm.com>
Regards,
Jens
--
Jens Remus
Linux on Z Development (D3303)
+49-7031-16-1128 Office
jremus@de.ibm.com
IBM
IBM Deutschland Research & Development GmbH; Vorsitzender des Aufsichtsrats: Wolfgang Wendt; Geschäftsführung: David Faller; Sitz der Gesellschaft: Böblingen; Registergericht: Amtsgericht Stuttgart, HRB 243294
IBM Data Privacy Statement: https://www.ibm.com/privacy/
More information about the Binutils
mailing list