[Bug 255332] WITHOUT_KERNEL_SYMBOLS - *.ko files with debug_info

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Apr 22 18:13:47 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255332

            Bug ID: 255332
           Summary: WITHOUT_KERNEL_SYMBOLS - *.ko files with debug_info
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs at FreeBSD.org
          Reporter: herbert at mailbox.org

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

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list