This is the mail archive of the libc-alpha@sources.redhat.com 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]

How to handle the empty DT_RPATH/DT_RUNPATH?


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)

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