[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: |
eugeni.stepanov at gmail dot com |
Subject: |
[Bug gold/18859] Gold linker does not fully respect -no-as-needed |
Date: |
Thu, 20 Aug 2015 22:54:39 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=18859
--- Comment #2 from Evgeniy Stepanov <eugeni.stepanov at gmail dot com> ---
There is some context here:
https://llvm.org/bugs/show_bug.cgi?id=15823
In the clang driver, we add a static library that implements wrappers for
libutil functions, i.e. it exports functions with the same names and calls the
real libutil functions with dlsym(RTLD_NEXT). To ensure that the executable
still depends on libutil, we add -no-as-needed -lutil to the end of the link
line - otherwise the linker thinks that all libutil dependencies are already
satisfied by the wrapper library.
The first "-as-needed -lutil" comes from the clang command line.
--
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, 2015/08/20
- [Bug gold/18859] Gold linker does not fully respect -no-as-needed,
eugeni.stepanov at gmail dot com <=
- [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