| 16.About static/dynamic link How to investigate the dependencies of Command and Library. Using ldd Command $ldd /usr/bin/make libc.so.6 => /lib/libc.so.6 (0x4001a000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) It is result of the Command by which the dynamic links. Result of file Command as following: $file /usr/bin/make make: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped $ldd /usr/bin/make not a dynamic executable It is result of the Command by which the static links. Result of file Command as following: $file /usr/bin/make make: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, not stripped You can predict to some extent because size is different about 10 times. In case of the Dynamic Links make.....144887 Bytes In case of the Static Links make....1097156 Bytes |