[so] relocari
mitel
so@cursuri.cs.pub.ro
Fri, 19 Nov 2004 14:03:14 +0200 (EET)
[tema2 linux]
salut!
am o nelamurire..
am listat aici mesajele pe care mi le da ldd cand verific relocarile
(pe care le face runtime-linkerul) pentru comanda ls; inainte si dupa ce
dau export la libtip.so .pentru /usr/bin/bash sau /usr/bin/mc nu am
probleme nici inainte nici dupa export LD_PRELOAD.in schimb pentru ls,
cat, grep
etc. am erori la relocare.why??
root@mitel:/mnt/linux2/c_work/tema2# ldd -r /usr/bin/ls
librt.so.1 => /lib/librt.so.1 (0x4002c000)
libc.so.6 => /lib/libc.so.6 (0x4003e000)
libpthread.so.0 => /lib/libpthread.so.0 (0x4016d000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
root@mitel:/mnt/linux2/c_work/tema2# export LD_PRELOAD=libtip.so
root@mitel:/mnt/linux2/c_work/tema2# ldd -r /usr/bin/ls
libtip.so => /lib/libtip.so (0x4002c000)
librt.so.1 => /lib/librt.so.1 (0x4002f000)
libc.so.6 => /lib/libc.so.6 (0x40041000)
libpthread.so.0 => /lib/libpthread.so.0 (0x40170000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
undefined symbol: dlclose (/lib/libtip.so)
undefined symbol: dlopen (/lib/libtip.so)
undefined symbol: dlsym (/lib/libtip.so)
root@mitel:/mnt/linux2/c_work/tema2# ldd -r /usr/bin/bash
libtip.so => /lib/libtip.so (0x4002c000)
libtermcap.so.2 => /lib/libtermcap.so.2 (0x4002f000)
libdl.so.2 => /lib/libdl.so.2 (0x40033000)
libc.so.6 => /lib/libc.so.6 (0x40036000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
----------------------------------------------
webhosting starting at 1.99 / month.
http://www.etp.ro/