create an statically linked executable from a dynamically linked executable and its dependencies
6
votes
1
answer
4795
views
Take
cat
as an example, if I do ldd $(which cat)
, it shows
linux-vdso.so.1 (0x00007fff8afbb000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb3102dd000)
/lib64/ld-linux-x86-64.so.2 (0x00007fb310524000)
Is there any way to bundle the cat
binary and these three so
files, so that it become statically linked?
My purpose is to use it inside a container.
Asked by doraemon
(491 rep)
Jan 6, 2022, 05:25 AM
Last activity: Jan 6, 2022, 06:34 AM
Last activity: Jan 6, 2022, 06:34 AM