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

--- Comment #5 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <h...@sourceware.org>:

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

commit 8e885fece150ee97e5b0e78363e7fe9888ae9c29
Author: H.J. Lu <hjl.to...@gmail.com>
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 <hjl.to...@gmail.com>
    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 <hjl.to...@gmail.com>

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

Reply via email to