This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: ldd -u -r segfaults on some libs
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Andreas Jaeger <aj at suse dot de>, libc-alpha at sources dot redhat dot com
- Date: Mon, 19 Sep 2011 13:53:13 -0700 (PDT)
- Subject: Re: ldd -u -r segfaults on some libs
- References: <201109192034.40335.aj@suse.de><m27h54uvp0.fsf@igel.home>
> That's because ldd -u relocates only main, but not its dependent libs,
> so any use of _dl_vdso_vsym (through ifuncs) will run over an
> unrelocated GOT in libc.so.
It sure seems like all the mode==trace cases should not run ifunc selectors
at all. That's running arbitrary code from the program rather than just
running ld.so code, which is a pretty big hole.
Thanks,
Roland