<div dir="ltr"><div>Hi Jose,</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Oct 23, 2025 at 10:56 AM Jose E. Marchesi <<a href="mailto:jose.marchesi@oracle.com">jose.marchesi@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
What DSO is being linked that you don't expect?<br>
<br>
There are some DSOs that are linked in every non-static executable, such<br>
as ld-linux-x86-64.so, linux-vdso.so, and likely libc.so.6, libm etc.<br></blockquote><div><br></div><div>These are not the usual glibc shared libraries.  These are boost libraries that resolve</div><div>symbols from some of our static libraries.  But the thing is, I cannot determine why </div><div>all of the boost libraries we specify on the link line are used, when we really need</div><div>only two.</div><div><br></div><div>I'd attach my map file, but it's 15 MB.  That would be a no-no.</div><div><br></div><div>Tom</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> Hi,<br>
><br>
> Not sure if this is the right list for asking this question.  If it's not,<br>
> please point me to the right list.<br>
><br>
> I am confused as to why a shared library - which isn't needed by<br>
> an executable - is linked in.<br>
><br>
> I am using binutils 2.39<br>
><br>
> The link line contains<br>
><br>
> -fuse-ld=gold -Wl,--as-needed -Wl,-Map,map.txt -Wl,--cref<br>
><br>
> When I look at map.txt, I cannot find why the shared library is<br>
> necessary.  What should I look for?<br>
><br>
> This is happening with binutils 2.45 as well.<br>
><br>
> Thanks,<br>
><br>
> Tom<br>
</blockquote></div></div>