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

--- Comment #11 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The binutils-2_45-branch branch has been updated by Sam James
<[email protected]>:

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

commit 96114b5c1472f0a3104cdd7fc995242768d52061
Author: H.J. Lu <[email protected]>
Date:   Wed Jul 30 08:53:11 2025 -0700

    strip: Don't check target_defaulted in input BFD

    The target_defaulted field in BFD is set to true if the target isn't
    specified.  After

    commit 717a38e9a02109fcbcb18bb2ec3aa251e2ad0a0d
    Author: H.J. Lu <[email protected]>
    Date:   Sun May 4 05:12:46 2025 +0800

        strip: Add GCC LTO IR support

    the target is set to "plugin" if BFD supports plugin when the target
    isn't specified nor default.  Update strip to check the input target,
    instead of the target_defaulted field in input BFD.

            PR binutils/33230
            * objcopy.c (copy_object): Add a bool argument, target_defaulted,
            to indicate if the input target isn't specified nor default.
            Check it instead of ibfd->target_defaulted.
            (copy_archive): Add a bool argument, target_defaulted, and pass
            it to copy_object.
            (copy_file): Set target_defaulted to true if the input target
            isn't specified and pass it to copy_archive and copy_object.
            * testsuite/binutils-all/x86-64/pr33230.obj.bz2: New file.
            * testsuite/binutils-all/x86-64/x86-64.exp: Run PR binutils/33230
            tests.

    Signed-off-by: H.J. Lu <[email protected]>
    (cherry picked from commit 8e885fece150ee97e5b0e78363e7fe9888ae9c29)

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

Reply via email to