<div dir="ltr">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.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 14, 2017 at 8:03 PM, Rafael Avila de Espindola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Scott Smith via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> writes:<br>
<br>
> With shared libraries, it is always possible that you end up running with a<br>
> different set of libraries than you actually linked with.  However, how<br>
> often is that actually the case?  It seems at the very least there should<br>
> be an option to tell the user that unless they switch libraries, their code<br>
> won't be runnable.  In most cases, everything is available to the linker to<br>
> detect the situation (as both ld and gold do).<br>
<br>
</span>Your best option for checking that during link time is to use -z defs<br>
when linking the shared library.<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br></div>