- 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.
This commit is contained in:
Peter Wemm 2000-01-10 06:15:43 +00:00
parent 796b3a67c3
commit 23a297f255
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55711

View File

@ -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"