Bug 255332 - WITHOUT_KERNEL_SYMBOLS - *.ko files with debug_info
Summary: WITHOUT_KERNEL_SYMBOLS - *.ko files with debug_info
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-22 18:13 UTC by Herbert J. Skuhra
Modified: 2021-04-22 18:13 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Herbert J. Skuhra 2021-04-22 18:13:47 UTC
src.conf(5) states:

WITHOUT_KERNEL_SYMBOLS
             Set to not install kernel symbol files.  This option is
             recommended for those people who have small root partitions.

1. I think *.ko.symbols are no longer installed
2. With this build option defined the /boot/kernel directory is actually larger because the *.ko files include debug_info.
3. Without this option debug files are installed in /usr/lib/debug (even with option "WITHOUT_DEBUG_FILES" in src.conf)

details https://lists.freebsd.org/pipermail/freebsd-current/2021-March/079271.html

To remove debug_info from kernel modules you have to 

a) "makeoptions     DEBUG=-g"
or
b) manually run "objcopy --strip-debug" on each *.ko