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

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

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

commit 44e7622937280a0a7c679949fc313d6ffc710701
Author: Alan Modra <[email protected]>
Date:   Wed Dec 17 08:00:24 2025 +1030

    PR 33721 load/store of misaligned address

    This fixes PR33721 by a common technique of declaring a packed struct
    to access unaligned integer fields.  (See eg. linux kernel
    include/vdso/unaligned.h)  I've tidied the PR29856 fix for a similar
    bug too (not that there was anything wrong with that fix).

            PR 33721
            PR 29856
            * sframe.c (flip_fre_start_address): Use a packed struct to
            access 2-byte and 4-byte unaligned fields.  Make addr a void*.
            (sframe_decode_fre_start_address): Similarly, and remove
            unnecessary casts.  Always set *fre_start_addr.

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

Reply via email to