bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/26150] Assertion failure at ldlang.c:7269 when using inline asse


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/26150] Assertion failure at ldlang.c:7269 when using inline assembly, -flto and --start-group
Date: Tue, 23 Jun 2020 15:21:43 +0000

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

--- Comment #12 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Alan Modra <amodra@sourceware.org>:

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

commit 9221725d1f6e3f5dd0c0143ee750460619c582f2
Author: Alan Modra <amodra@gmail.com>
Date:   Tue Jun 23 23:50:56 2020 +0930

    PR26150, Assertion when asm() defines global symbols, -flto and
--start-group

    If an archive map contains symbols that aren't actually defined by the
    indexed element for any reason, then loading that element will leave
    the symbol undefined (or common).  This leads to the possibility of
    the element being loaded again should the archive be searched again
    due to the action of --start-group/--end-group.  The testcase
    triggering this problem was an archive containing fat lto objects,
    with the archive map incorrectly created by ar rather than gcc-ar.

            PR 26150
            * ldlang.c (ldlang_add_file): Assert that we aren't adding the
            current end of link.next list again too.
            * ldmain.c (add_archive_element): Don't load archive elements
            again that have already been loaded.

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