This is the mail archive of the libc-alpha@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: ldd -u -r segfaults on some libs


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."


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