bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/18028] 32-bit ld runs out of memory when linking 32-bit clang wi


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/18028] 32-bit ld runs out of memory when linking 32-bit clang with debug info
Date: Wed, 07 Jul 2021 14:50:49 +0000

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

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The binutils-2_37-branch branch has been updated by H.J. Lu
<hjl@sourceware.org>:

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

commit f9b771014915eebbd20791870ffd175b9156ce42
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Jul 7 07:47:00 2021 -0700

    ld: Check archive only for archive member

    Since plugin_maybe_claim calls bfd_close on the original input BFD if it
    isn't an archive member, pass NULL to bfd_plugin_close_file_descriptor
    to indicate that the BFD isn't an archive member.

    bfd/

            PR ld/18028
            * plugin.c (bfd_plugin_close_file_descriptor): Check archive
            only of abfd != NULL.
            (try_claim): Pass NULL to bfd_plugin_close_file_descriptor if
            it isn't an archive member.

    ld/

            PR ld/18028
            * plugin.c (plugin_input_file): Add comments for abfd and ibfd.
            (plugin_object_p): Set input->ibfd to NULL if it isn't an
            archive member.

    (cherry picked from commit 7a30ac441a4e776e68399cb916c4731b5192e931)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]