bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/23409] Shared libraries created with duplicate _end, _edata an


From: cvs-commit at gcc dot gnu.org
Subject: [Bug gold/23409] Shared libraries created with duplicate _end, _edata and __bss_start symbols
Date: Sat, 14 Jul 2018 19:32:21 +0000

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

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

commit 1b115e8e0e051d65d0747f0a8a84eb6453866729
Author: Cary Coutant <address@hidden>
Date:   Sat Jul 14 12:29:03 2018 -0700

    Fix problem causing duplicated linker-generated symbols with versions.

    When generating _end, _edata, etc. symbols, and a version script provides
    a version name, and we are linking against another shared library that
    provides those symbols with a different version, gold ends up trying to
    resolve the other shared library's symbols to the new definitions,
resulting
    in two copies of each symbol, one as default, and one as non-default.
    This patch tests for that condition, and ignores the symbols provided
    by the other shared library.

    gold/
        PR gold/23409
        * symtab.cc (Symbol_table::define_special_symbol): Add check for
        version name on existing symbol.
        * testsuite/Makefile.am (ver_test_pr23409): New test case.
        * testsuite/Makefile.in: Regenerate.
        * testsuite/ver_test_pr23409.sh: New test script.
        * testsuite/ver_test_pr23409_1.script: New version script.
        * testsuite/ver_test_pr23409_2.script: New version script.

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