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

            Bug ID: 291271
           Summary: qat_common.ko missing symbol exports -- dependent
                    modules fail to load with module loader local symbol
                    resolution disabled
           Product: Base System
           Version: 16.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: [email protected]
          Reporter: [email protected]

See
https://lists.freebsd.org/archives/freebsd-current/2025-November/009500.html
for background.

To reproduce, set
debug.link_elf_leak_locals=0
debug.link_elf_obj_leak_locals=0
then

# kldload qat.ko
link_elf_obj: symbol M_QAT undefined
linker_load_file: /boot/kernel/qat_api.ko - unsupported file type

The module's Makefile should have an EXPORT_SYMS= line that lists all of the
symbols to be intentionally exported.

Another option is to just set EXPORT_SYMS=YES.  An explicit export list is
preferred over EXPORT_SYMS=YES, unless we explicitly want all symbols exported.

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

Reply via email to