bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/18859] Gold linker does not fully respect -no-as-needed


From: cvs-commit at gcc dot gnu.org
Subject: [Bug gold/18859] Gold linker does not fully respect -no-as-needed
Date: Wed, 26 Aug 2015 01:40:07 +0000

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

--- Comment #5 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=4bfacfd359a1f8d026d1a350f56f2f5d70b6cb65

commit 4bfacfd359a1f8d026d1a350f56f2f5d70b6cb65
Author: Cary Coutant <address@hidden>
Date:   Fri Aug 21 12:32:33 2015 -0700

    Fix --no-as-needed when shared library is listed twice on the command line.

    When a shared library is listed twice on the command line, the linker
    ignores the second mention. If the first mention is in the scope of
    an --as-needed option, and the second one is under the scope of a
    --no-as-needed option, the --no-as-needed should take effect, but
    doesn't.  This patch keeps track of the objects we've already seen,
    and updates the --as-needed flag so that if a shared object is ever
    seen with --no-as-needed, it will be marked as such.

    gold/
        PR gold/18859
        * object.cc (Input_objects::add_object): Store objects in a map,
        indexed by soname; update as-needed flag when necessary.
        * object.h (Object::clear_as_needed): New method.
        (Input_objects::so_names_): Change from set to map.

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