Re: Linking custom ld-linux.so.2 for a shared library.
Swapnil Nagle <[email protected]>
| Newsgroups | gmane.org.user-groups.linux.plug,gmane.user-groups.linux.india.programmers |
|---|---|
| Message-ID | <[email protected]> |
> I am trying to create a shared library, in which I > want to link a custom ld-linux.so.2 rather than > picking from /lib, the default location. > ... > The library gets created, but it links to local > ld-linux.so.2. Verified by, > > $ ldd libab.so > libc.so.6 => /new/lib/libc.so.6 (0x40009000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) > Maybe libc has a dependency on /lib/ld-linux.so. Another approach can be by using LD_PRELOAD. Regards, Swapni.