https://sourceware.org/bugzilla/show_bug.cgi?id=33277

--- Comment #5 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Indu Bhagat <[email protected]>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6384e241e8fd037e2aab1da34da7a0bf0b2ea521

commit 6384e241e8fd037e2aab1da34da7a0bf0b2ea521
Author: Indu Bhagat <[email protected]>
Date:   Tue Nov 4 22:59:11 2025 -0800

    gas: sframe: fix PR gas/33277

    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.

    Reviewed-by: Jens Remus <[email protected]>

    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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to