This is the mail archive of the libc-help@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: Valgrinding ld.so


Worked like a charm.
Thanks a lot.

On Mon, Sep 9, 2013 at 9:48 PM, Carlos O'Donell <carlos@systemhalted.org> wrote:
> 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.


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