Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Mar 2021 14:30:58 +0100
From:      "Herbert J. Skuhra" <herbert@gojira.at>
To:        stable@freebsd.org
Cc:        current@freebsd.org
Subject:   Re: WITHOUT_KERNEL_SYMBOLS - *.ko now with debug_info
Message-ID:  <87ft0glo4t.wl-herbert@gojira.at>
In-Reply-To: <YFfwF1wUgqM4fYJI@mail.bsd4all.net>
References:  <875z1ktawz.wl-herbert@gojira.at> <YFfwF1wUgqM4fYJI@mail.bsd4all.net>

next in thread | previous in thread | raw e-mail | index | archive | help
add Cc: current@

On Mon, 22 Mar 2021 02:17:11 +0100, "Herbert J. Skuhra" wrote:
> 
> On Sun, Mar 21, 2021 at 11:11:08PM +0100, Herbert J. Skuhra wrote:
> > Hi,
> > 
> > since upgrading to stable/13 I was wondering why /boot/kernel is much
> > larger. When using "WITHOUT_KERNEL_SYMBOLS=" in /etc/src.conf the
> > kernel modules now contain debug_info. OK? (I manually run "objcopy
> > --strip-debug".)
> 
> I found the following commit:
> 
> commit 9b6edf364eb05aca4709732136e92a6ab739bb36
> Author: Conrad Meyer
> Date:   Tue Jun 23 18:25:31 2020 +0000
> 
> If this change is correct maybe src.conf(5) should be updated:
> 
> WITHOUT_KERNEL_SYMBOLS
>              Set to not install kernel symbol files.  This option is
>              recommended for those people who have small root partitions.

???

% make -j4  buildkernel KERNCONF=GENERIC SRCCONF=/dev/null
% doas make installkernel KERNCONF=GENERIC SRCCONF=/dev/null KODIR=/boot/testkernel
% doas rm -rf /usr/obj/usr/src/amd64.amd64/sys/GENERIC
% cat /etc/src_tmp.conf 
WITHOUT_KERNEL_SYMBOLS=
% make -j4  buildkernel KERNCONF=GENERIC SRCCONF=/etc/src_tmp.conf
% doas make installkernel KERNCONF=GENERIC SRCCONF=/etc/src_tmp.conf KODIR=/boot/testkernel2
% du -sh /boot/testkernel 
 63M    /boot/testkernel
(=> ~ 153M UFS or ZFS with compression=off) 
% du -sh /usr/lib/debug/boot/testkernel/
151M    /usr/lib/debug/boot/testkernel/
(=> ~ 491M UFS or ZFS with compression=off)
% du -sh /boot/testkernel2
155M    /boot/testkernel2
(=> ~ 494M UFS or ZFS with compression=off)

--
Herbert



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87ft0glo4t.wl-herbert>