bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/24406] -Wl,--wrap= incompatible with -flto


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/24406] -Wl,--wrap= incompatible with -flto
Date: Thu, 25 Apr 2019 14:55:22 +0000

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

--- Comment #7 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by H.J. Lu <address@hidden>:

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

commit 6fe014bcd33686cb75e6355f9c36ce483a64ec62
Author: H.J. Lu <address@hidden>
Date:   Thu Apr 25 07:53:46 2019 -0700

    LTO: Properly handle wrapper symbols in IR

    When a wrapper symbol, __wrap_FOO, is defined in IR, its resolution
    should be LDPR_PREVAILING_DEF, not PREVAILING_DEF_IRONLY, since LTO
    doesn't know that __wrap_FOO provides definition of FOO.  And resolution
    of FOO should be LDPR_RESOLVED_IR since it is resolved by __wrap_FOO in
    IR.

        PR ld/24406
        * ld.texi: Remove LTO warning from --wrap.
        * plugin.c (get_symbols): Update resolution for wrapper and
        wrapped symbols.
        * testsuite/ld-plugin/lto.exp: Run ld/24406 tests.
        * testsuite/ld-plugin/pr24406-1.c: New file.
        * testsuite/ld-plugin/pr24406-2a.c: Likewise.
        * testsuite/ld-plugin/pr24406-2b.c: Likewise.

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