[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: |
ccoutant at gmail dot com |
Subject: |
[Bug gold/18859] Gold linker does not fully respect -no-as-needed |
Date: |
Thu, 20 Aug 2015 22:26:01 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=18859
Cary Coutant <ccoutant at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Cary Coutant <ccoutant at gmail dot com> ---
> Gold and ld behave differently when a shared library is first mentioned when
> -as-needed is in effect, and then again after -no-as-needed. Ld generates a
> DT_NEEDED entry for such library, and gold does not.
Why are you expecting a NEEDED entry for libutil? There's nothing in your main
program that depends on anything in that library, so by the definition of the
--as-needed option, gold is doing exactly what I would expect.
Your command line lists "-lutil" twice, once between the as-needed options, and
once after. Gold ignores any shared library listed on the command line that it
has already processed.
If you want the library in your DT_NEEDED list, remove the first copy from your
command line (the one between --as-needed and --no-as-needed).
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gold/18859] New: Gold linker does not fully respect -no-as-needed, eugeni.stepanov at gmail dot com, 2015/08/20
- [Bug gold/18859] Gold linker does not fully respect -no-as-needed,
ccoutant at gmail dot com <=
- [Bug gold/18859] Gold linker does not fully respect -no-as-needed, eugeni.stepanov at gmail dot com, 2015/08/20
- [Bug gold/18859] Gold linker does not fully respect -no-as-needed, ccoutant at gmail dot com, 2015/08/21
- [Bug gold/18859] Gold linker does not fully respect -no-as-needed, eugeni.stepanov at gmail dot com, 2015/08/24
- [Bug gold/18859] Gold linker does not fully respect -no-as-needed, cvs-commit at gcc dot gnu.org, 2015/08/25
- [Bug gold/18859] Gold linker does not fully respect -no-as-needed, ccoutant at gmail dot com, 2015/08/25