This is the mail archive of the 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: =>  (0x00007fff611fe000) => /lib/x86_64-linux-gnu/ (0x00007fc72fe5e000) => /lib/x86_64-linux-gnu/ (0x00007fc72fa99000)
/home/martin/glibc/install/lib/ =>
/lib64/ (0x00007fc7300a3000)

I wonder how that last path got hardcoded there?

On Fri, Jun 24, 2016 at 5:46 PM, Martin Galvan
<> 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/
> -Wl,-dynamic-linker=/home/martin/glibc/install/lib/
> -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/
> /home/martin/glibc/build/libc_nonshared.a -Wl,--as-needed
> /home/martin/glibc/build/elf/ -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]