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


I just tried running the test program on a separate laptop and it
failed to work because it couldn't find the libraries. Ldd still
showed:

linux-vdso.so.1 =>  (0x00007fff611fe000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fc72fe5e000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc72fa99000)
/home/martin/glibc/install/lib/ld-linux-x86-64.so.2 =>
/lib64/ld-linux-x86-64.so.2 (0x00007fc7300a3000)

I wonder how that last path got hardcoded there?

On Fri, Jun 24, 2016 at 5:46 PM, Martin Galvan
<martin.galvan@tallertechnologies.com> wrote:
> I added an endless loop to the test code, so that I could examine its
> proc mappings without running it through gdb, and I'm still seeing the
> built libraries. And yeah, you're right in that it's being compiled
> using rpath-link:
>
> gcc -nostdlib -nostartfiles -o
> /home/martin/glibc/build/pretty-printers/test-mutex-printer
> -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both
> /home/martin/glibc/build/csu/crt1.o
> /home/martin/glibc/build/csu/crti.o `gcc
> --print-file-name=crtbegin.o`
> /home/martin/glibc/build/pretty-printers/test-mutex-printer.o
> /home/martin/glibc/build/nptl/libpthread_nonshared.a
> /home/martin/glibc/build/nptl/libpthread.so
> -Wl,-dynamic-linker=/home/martin/glibc/install/lib/ld-linux-x86-64.so.2
> -Wl,-rpath-link=/home/martin/glibc/build:/home/martin/glibc/build/math:/home/martin/glibc/build/elf:/home/martin/glibc/build/dlfcn:/home/martin/glibc/build/nss:/home/martin/glibc/build/nis:/home/martin/glibc/build/rt:/home/martin/glibc/build/resolv:/home/martin/glibc/build/crypt:/home/martin/glibc/build/mathvec:/home/martin/glibc/build/nptl
> /home/martin/glibc/build/libc.so.6
> /home/martin/glibc/build/libc_nonshared.a -Wl,--as-needed
> /home/martin/glibc/build/elf/ld.so -Wl,--no-as-needed -lgcc
> -Wl,--as-needed -lgcc_s  -Wl,--no-as-needed `gcc
> --print-file-name=crtend.o` /home/martin/glibc/build/csu/crtn.o



-- 


Martin Galvan

Software Engineer

Taller Technologies Argentina


San Lorenzo 47, 3rd Floor, Office 5

CÃrdoba, Argentina

Phone: 54 351 4217888 / +54 351 4218211


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