bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/19842] LTO build fails to write call address for weak symbol r


From: cvs-commit at gcc dot gnu.org
Subject: [Bug gold/19842] LTO build fails to write call address for weak symbol reference
Date: Tue, 22 Mar 2016 04:43:12 +0000

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

--- Comment #25 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Cary Coutant <address@hidden>:

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

commit 648c5cbbf34dcbf96bde7e07b14868777fd5d635
Author: Cary Coutant <address@hidden>
Date:   Mon Mar 21 19:07:55 2016 -0700

    Fix problem where gold fails to issue an undefined symbol error during LTO.

    During LTO, if (1) an IR file contains a COMDAT group that is kept,
    (2) a later non-claimed file contains the same group, which we discard,
    and (3) the plugin fails to provide a definition of the symbols in that
    COMDAT group, gold silently resolves any references to those symbols
    to 0.

    This patch adds a check for a placeholder symbol when deciding
    whether to issue an undefined symbol error. It also adds an extra
    note after any undefined placeholder symbol error that explains
    that a definition was expected from the plugin.

    gold/
        PR gold/19842
        * errors.cc (Errors::undefined_symbol): Add info message when
        symbol should have been provided by a plugin.
        * target-reloc.h (issue_undefined_symbol_error): Check for
        placeholder symbols defined in discarded sections.
        * testsuite/Makefile.am (plugin_test_9b): New test case.
        * testsuite/Makefile.in: Regenerate.
        * testsuite/plugin_test_9b_elf.cc: New test source file.
        * testsuite/plugin_test_9b_ir.cc: New test source file.

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