Bug 291251 - bcma_bhndb.ko, bhnd_pci_hostb.ko, bhnd_pcib.ko, bhndb_pci.ko fail to load with module loader local symbol resolution disabled
Summary: bcma_bhndb.ko, bhnd_pci_hostb.ko, bhnd_pcib.ko, bhndb_pci.ko fail to load wit...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 16.0-CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks: 207898
  Show dependency treegraph
 
Reported: 2025-11-27 16:33 UTC by Ed Maste
Modified: 2025-11-27 16:57 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 Ed Maste freebsd_committer freebsd_triage 2025-11-27 16:33:15 UTC
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 bcma_bhndb.ko
link_elf_obj: symbol bcma_probe undefined
linker_load_file: /boot/kernel/bcma_bhndb.ko - unsupported file type
kldload: an error occurred while loading module bcma_bhndb.ko. Please check dmesg(8) for more details.

The dependent modules need to list their intentionally exported symbols in EXPORT_SYMS