This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v8] Add pretty printers for the NPTL lock types


On Fri, Jun 24, 2016 at 07:04:19PM -0300, Martin Galvan wrote:
> Sid: I did a bit more testing, and it seems like the magic comes from the
> -dynamic-linker flag that's being passed to ld. Without it, info share
> shows that the system libraries are being used:

Yes, that is the interesting bit: your build seems to end up using the
built dynamic linker instead of the one from the system.  This might
be due to the way you're configuring your build.  I do just this:

    ../configure --prefix=/usr --enable-multi-arch

> (gdb) info share
> From                To                  Syms Read   Shared Object Library
> 0x00007ffff7ddaae0  0x00007ffff7df5490  Yes
> /lib64/ld-linux-x86-64.so.2
> 0x00007ffff7bc19f0  0x00007ffff7bce471  Yes
> /lib/x86_64-linux-gnu/libpthread.so.0
> 0x00007ffff7816520  0x00007ffff795b183  Yes
> /lib/x86_64-linux-gnu/libc.so.6
> 
> If I'm correct, then this shouldn't be an issue since glibc's newly built
> ld.so should take care of finding the correct libraries. Don't ask me how
> it works internally though, I'm learning as I go along :)

My theory is that it might be because of the difference in
configuration.  I'll play with it a bit tonight and let you know.

Siddhesh


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]