--On 10 August 2005 18:09 +1000, David Crawshaw wrote:

On 10/08/2005, at 5:56 PM, Paul de Weerd wrote:
While building an (unsupported, i know) stripped down install, I
noticed that the larger binaries in /usr/sbin are all from BIND :

-r-xr-xr-x   1 root  bin      1015716 May 22 10:11 dnssec-signzone

Files are the same size in my GENERIC 3.7 install. It's because
they're statically linked (hence sbin not bin) to libcrypto.

That's /sbin (and /bin), not /usr/sbin etc. Programs in / are meant to be able to run without having /usr mounted.

5001 [bootes ~]%  file /usr/sbin/host
/usr/sbin/host: ELF 64-bit MSB executable, SPARC64, version 1, for OpenBSD, dynamically linked (uses shared libs), stripped

5002 [bootes ~]% ldd /usr/sbin/host
/usr/sbin/host:
       Start            End              Type Ref Name
       0000000000000000 0000000000000000 exe   1  /usr/sbin/host
000000005026a000 00000000509c0000 rlib 1 /usr/lib/libcrypto.so.12.0
       0000000045212000 00000000458fc000 rlib  1  /usr/lib/libc.so.37.0
       0000000047900000 0000000047900000 rtld  1  /usr/libexec/ld.so

libc/libcrypto etc. are dynamically linked, it's the statically-linked parts of libdns taking the space (/usr/obj/usr.sbin/bind/lib/)

Reply via email to