This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

Hard coding paths to shared libraries


I know that hard coding the path to a shared library is probably not a good
idea. Nevertheless, I would like to know how to do it. For instance:

I see the following in my Solaris machine:

> /bin/ldd /bin/ls
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1

Apparently, the path to libc_psr.so.1 was hard coded into the binary. How
can I do the same if I want to?

Thanks,
Iran Rocha


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