ldd -u -r segfaults on some libs
Andreas Schwab
schwab@linux-m68k.org
Mon Sep 19 20:43:00 GMT 2011
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."
More information about the Libc-alpha
mailing list