diff options
author | peter <peter@FreeBSD.org> | 2000-01-10 06:15:43 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-01-10 06:15:43 +0000 |
commit | 06cb64b59a5f8320c7951616d9e2cd36917e71c0 (patch) | |
tree | 2621ec783d7117a92cb2df0beb8e7cdbdc3507e9 /release/Makefile | |
parent | 74ccbaf2d81548f83ae5cbf0fe6fc8ce84da1feb (diff) | |
download | FreeBSD-src-06cb64b59a5f8320c7951616d9e2cd36917e71c0.zip FreeBSD-src-06cb64b59a5f8320c7951616d9e2cd36917e71c0.tar.gz |
- 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.
Diffstat (limited to 'release/Makefile')
-rw-r--r-- | release/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
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" |