This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Valgrinding ld.so
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: Guillaume Berard <berardgui at gmail dot com>
- Cc: "libc-help at sourceware dot org" <libc-help at sourceware dot org>
- Date: Mon, 9 Sep 2013 15:48:44 -0400
- Subject: Re: Valgrinding ld.so
- Authentication-results: sourceware.org; auth=none
- References: <CAJ3=_kiQePCM8TP_W9GL-KjVZo936m1TjiXEzw8gxLhPpc5wGA at mail dot gmail dot com>
On Mon, Sep 9, 2013 at 3:36 PM, Guillaume Berard <berardgui@gmail.com> wrote:
> I was wondering if there is a way to valgrind ld.so.
> I cloned glibc source and built my own ld.so with a leak (one malloc,
> no free) with --dynamic-linker, but valgrind does not show any
> errors... Does someone know if there is particular settings to give to
> valgrind to profile ld.so code?
It should work to run it directly on the dynamic loader? Does it?
e.g. valgrind /path/to/build/elf/ld.so --library-path
/path/to/build:/path/to/build/elf ./application
Cheers,
Carlos.