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

            Bug ID: 291273
           Summary: p9fs module 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]
            Blocks: 207898

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 virtio_p9fs.ko
link_elf_obj: symbol p9_init_zones undefined
linker_load_file: /boot/kernel/virtio_p9fs.ko - unsupported file type
kldload: an error occurred while loading module virtio_p9fs.ko. Please check
dmesg(8) for more details.

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 actually want all symbols exported.


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207898
[Bug 207898] kernel linker behaves differently on amd64 vs. i386
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to