[llvm-dev] [lld] bug detecting undefined symbols in shared libraries

Scott Smith via llvm-dev llvm-dev at lists.llvm.org
Thu Dec 14 21:00:13 PST 2017


I tried that.  It doesn't work in my application due to odd circular
references between shared libraries.  I need the validation to happen at
executable link time, not shared library link time.

On Thu, Dec 14, 2017 at 8:03 PM, Rafael Avila de Espindola <
rafael.espindola at gmail.com> wrote:

> Scott Smith via llvm-dev <llvm-dev at lists.llvm.org> writes:
>
> > With shared libraries, it is always possible that you end up running
> with a
> > different set of libraries than you actually linked with.  However, how
> > often is that actually the case?  It seems at the very least there should
> > be an option to tell the user that unless they switch libraries, their
> code
> > won't be runnable.  In most cases, everything is available to the linker
> to
> > detect the situation (as both ld and gold do).
>
> Your best option for checking that during link time is to use -z defs
> when linking the shared library.
>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171214/3e8a67a6/attachment-0001.html>


More information about the llvm-dev mailing list