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: Andreas Schwab <schwab at linux-m68k dot org>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Mon, 19 Sep 2011 22:24:43 +0200
- Subject: Re: ldd -u -r segfaults on some libs
- References: <201109192034.40335.aj@suse.de>
Andreas Jaeger <aj@suse.de> writes:
> Program terminated with signal 11, Segmentation fault.
> #0 0x00007fb8bdeb6c21 in _dl_vdso_vsym (name=0x7fb8bdef18a9
> "gettimeofday", vers=0x7fff42195cf0) at
> ../sysdeps/unix/sysv/linux/dl-vdso.c:28
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.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."