bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/29389] pe renaming implib breaks bfd/cache.c reopening of


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/29389] pe renaming implib breaks bfd/cache.c reopening of closed archives
Date: Wed, 03 Aug 2022 12:33:48 +0000

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

--- Comment #28 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Nick Clifton <nickc@sourceware.org>:

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

commit a6ad7914429a22d3d835bd998b032212b776a08a
Author: Alan Modra <amodra@gmail.com>
Date:   Wed Aug 3 13:31:57 2022 +0100

    Fix a conflict between the linker's need to rename some PE format input
libraries and the BFD library's file caching mechanism.

            PR 29389
    bfd     * bfd.c (BFD_CLOSED_BY_CACHE): New bfd flag.
            * cache.c (bfd_cache_delete): Set BFD_CLOSED_BY_DELETE on the
            closed bfd.
            (bfd_cache_lookup_worker): Clear BFD_CLOSED_BY_DELETE on the newly
            reopened bfd.
            * opncls.c (bfd_set_filename): Refuse to change the name of a bfd
            that has been closed by bfd_cache_delete.  Mark changed bfds as
            uncacheable.
            * bfd-in2.h: Regenerate.

    ld      * ldlang.h (lang_input_statement_struct): Add sort_key field.
            * emultempl/pe.em (after_open): If multiple import libraries refer
            to the same bfd, store their names in the sort_key field.
            * emultempl/pep.em (after_open): Likewise.
            * ldlang.c (sort_filename): New function.  Returns the filename to
            be used when sorting input files.
            (wild_sort): Use the sort_filename function.

-- 
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]