link to a different libc file
Posted
by bobby
on Stack Overflow
See other posts from Stack Overflow
or by bobby
Published on 2010-04-28T10:19:06Z
Indexed on
2010/04/28
10:23 UTC
Read the original article
Hit count: 264
I want to supply the shared libs along with my program rather than using the system's:
ldd says my program uses these shared libs:
linux-gate.so.1 => (0xf7ef0000)(made by kernel)
libc.so.6 => /lib32/libc.so.6 (0xf7d88000)(libc-2.7.so)
/lib/ld-linux.so.2 (0xf7ef1000)(ld-2.7.so)
I have successfully linked ld-xxx.so by compiling like this:
gcc -std=c99 -D_POSIX_C_SOURCE=200112L -O2 -m32 -s -Wl,-dynamic-linker,ld-2.7.so myprogram.c
But I have not managed to successfuly link libc-xxx.so. How can I do that ?
© Stack Overflow or respective owner