bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/27228] .reloc wrong symbol emitted for undefined local symbol


From: cvs-commit at gcc dot gnu.org
Subject: [Bug gas/27228] .reloc wrong symbol emitted for undefined local symbol
Date: Sun, 24 Jan 2021 05:47:32 +0000

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

--- Comment #1 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=68fcee4fa753f6488c9f90610da2f5a5a95d5a1f

commit 68fcee4fa753f6488c9f90610da2f5a5a95d5a1f
Author: Alan Modra <amodra@gmail.com>
Date:   Sun Jan 24 12:39:07 2021 +1030

    PR27228, .reloc wrong symbol emitted for undefined local symbol

    Local symbols are of course supposed to be defined by their object
    file, but in other cases a local symbol is promoted to global by gas
    if undefined and referenced.  This patch stops gas wrongly replacing a
    local undefined symbol with the undefined section symbol, resulting in
    a .reloc undefined local symbol being emitted as global.

            PR 27228
            * write.c (resolve_reloc_expr_symbols): Don't assume local symbol
            is defined.

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