From 06cb64b59a5f8320c7951616d9e2cd36917e71c0 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 10 Jan 2000 06:15:43 +0000 Subject: - Revert --strip-all of /kernel on a new installed system (it would work with kld etc just fine, but tracebacks would have less information and nm /kernel wouldn't be so good). - Just strip the kernel on the boot disk. This does not affect kld or module loading, there are two symbol tables in a kernel. There is the dynamic linking one (.dynsym+.strtab) with just global symbols and a user symbol table (.symtab+.strtab) with all symbols. BTW; objdump lies and hides the second one. There's a good half a meg or so that can be saved from an average kernel by stripping it. --- release/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'release') diff --git a/release/Makefile b/release/Makefile index a6c3215..950b940 100644 --- a/release/Makefile +++ b/release/Makefile @@ -706,7 +706,7 @@ doKERNEL: @cd ${.CURDIR}/../sys/compile/${KERNEL} && \ make depend && \ make ${KERNEL} && \ - strip --strip-all ${KERNEL} && \ + strip --strip-debug ${KERNEL} && \ cp ${KERNEL} ${RD}/kernels/${KERNEL} # @@ -727,6 +727,7 @@ doMFSKERN: @cd ${.CURDIR} && ${MAKE} doKERNEL KERNEL=BOOTMFS @rm -rf ${RD}/image.${FSIMAGE} @mkdir ${RD}/image.${FSIMAGE} + @strip ${RD}/kernels/BOOTMFS @cp ${RD}/kernels/BOOTMFS ${RD}/kernels/BOOTMFS.${FSIMAGE} mv ${RD}/kernels/BOOTMFS ${RD}/image.${FSIMAGE}/kernel @echo "Setting up /boot directory for ${FSIMAGE} floppy" -- cgit v1.1