How to handle the empty DT_RPATH/DT_RUNPATH?
H . J . Lu
hjl@valinux.com
Mon Jan 8 15:25:00 GMT 2001
The ld.so treats the empty DT_RPATH/DT_RUNPATH like
# gcc -Wl,-rpath,"" t.c
# LD_DEBUG=libs ./a.out
22077: find library=libc.so.6; searching
22077: search path=i686/mmx:i686:mmx: (RPATH from file ./a.out)
22077: trying file=i686/mmx/libc.so.6
22077: trying file=i686/libc.so.6
22077: trying file=mmx/libc.so.6
22077: trying file=libc.so.6
22077: search cache=/etc/ld.so.cache
22077: trying file=/lib/libc.so.6
I am not sure if treating the empty DT_RPATH/DT_RUNPATH as "." is
ok. On the other hand, "xxx:" is treated the same as "xxx:.".
--
H.J. Lu (hjl@valinux.com)
More information about the Libc-alpha
mailing list