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: 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]