This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Help: GOLD unable to find logf() in libm.so when sysroot is enabled
Nick,
If you find that the problem isn't actually fixed on trunk, perhaps
this was the bug:
https://sourceware.org/ml/binutils/2016-11/msg00097.html
-cary
On Fri, Nov 4, 2016 at 8:34 AM, Nick Clifton <nickc@redhat.com> wrote:
> Hi Ian,
>
>> gold only warns about undefined references from shared libraries in
>> specific circumstances. See
>> Symbol_table::warn_about_undefined_dynobj_symbol in symtab.cc. I
>> think that particularly relevant here is that gold does not warn about
>> an undefined reference in a shared library that it finds in a "system
>> directory", which basically means a directory found in the sysroot.
>> I'm guessing that that is somehow the difference between your two
>> links. But I don't know why the definition of logf found in libm.so
>> is not satisfying the references from the other shared libraries.
>> Could there be any versions involved?
>
> No. I checked and the reference and definition are both unversioned.
>
> I did find however that I spoke too soon about this problem not being
> fixed in the mainline sources. It seems that somehow the bug is fixed.
> I am currently checking to make sure that this is correct and not just
> me mucking up the testing again, but using a VM makes the whole process
> very slow.
>
> Thanks very much for taking a look at the problem though.
>
> Cheers
> Nick
>