Re: WITHOUT_KERNEL_SYMBOLS - *.ko now with debug_info

From: Herbert J. Skuhra <herbert_at_gojira.at>
Date: Sat, 27 Mar 2021 14:30:58 +0100
add Cc: current_at_

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
Received on Sat Mar 27 2021 - 12:32:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:27 UTC