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.