cvs commit: src/sbin/nologin Makefile nologin.c nologin.sh
Dag-ErlingSmørgrav
des at des.no
Tue Nov 18 00:12:35 PST 2003
Garance A Drosihn <drosih at rpi.edu> writes:
> How much larger is the object-file for the no-login port compared
> to this minimal one?
des at dwp /usr/src/sbin/nologin% make
Warning: Object directory not changed from original /usr/src/sbin/nologin
cc -O -pipe -g -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -fno-builtin -c nologin.c
cc -O -pipe -g -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -fno-builtin -static -o nologin nologin.o
gzip -cn nologin.5 > nologin.5.gz
gzip -cn nologin.8 > nologin.8.gz
des at dwp /usr/src/sbin/nologin% strip -g nologin
des at dwp /usr/src/sbin/nologin% file nologin
nologin: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 5.0.1, statically linked, not stripped
des at dwp /usr/src/sbin/nologin% size nologin
text data bss dec hex filename
9350 308 328 9986 2702 nologin
des at dwp /usr/src/sbin/nologin% du nologin
22 nologin
des at dwp /des at dwp /usr/ports/sysutils/no-login/work/nologin-1.0% cc -O -pipe -static nologin.c -o nologin
des at dwp /usr/ports/sysutils/no-login/work/nologin-1.0% strip -g nologin
des at dwp /usr/ports/sysutils/no-login/work/nologin-1.0% file nologin
nologin: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 5.0.1, statically linked, not stripped
des at dwp /usr/ports/sysutils/no-login/work/nologin-1.0% size nologin
text data bss dec hex filename
75814 4372 22884 103070 1929e nologin
des at dwp /usr/ports/sysutils/no-login/work/nologin-1.0% du nologin
114 nologin
I believe most of this increase is caused by the use of syslog.
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the cvs-src
mailing list