bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/22502] Unable to redefine weak function in LTO incrementally-lin


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/22502] Unable to redefine weak function in LTO incrementally-linked executable
Date: Tue, 28 Nov 2017 11:49:42 +0000

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

--- Comment #3 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=a83ef4d139c377e0e87d105977d85c6ef9fbb162

commit a83ef4d139c377e0e87d105977d85c6ef9fbb162
Author: H.J. Lu <address@hidden>
Date:   Tue Nov 28 03:48:25 2017 -0800

    ld: Set non_ir_ref_regular on symbols referenced in regular objects

    If linker plugin is enabled, set non_ir_ref_regular on symbols referenced
    in regular objects so that linker plugin will get the correct symbol
    resolution.

    bfd/

        PR ld/22502
        * elflink.c (_bfd_elf_merge_symbol): Also skip definition from
        an IR object.
        (elf_link_add_object_symbols): If linker plugin is enabled, set
        non_ir_ref_regular on symbols referenced in regular objects so
        that linker plugin will get the correct symbol resolution.

    ld/

        PR ld/22502
        * testsuite/ld-plugin/lto.exp: Run PR ld/22502 test.
        * testsuite/ld-plugin/pr22502a.c: New file.
        * testsuite/ld-plugin/pr22502b.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]