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 mfi_linux.ko link_elf_obj: symbol linux_device_register_handler undefined linker_load_file: /boot/kernel/mfi_linux.ko - unsupported file type kldload: an error occurred while loading module mfi_linux.ko. Please check dmesg(8) for more details. The dependent module's Makefile should have an EXPORT_SYMS= line that lists all of the symbols that should be intentionally exported. Another option (but not preferred) is to just set EXPORT_SYMS=YES, unless we explicitly want all symbols exported.
Also mrsas_linux.ko # kldload mrsas_linux.ko link_elf_obj: symbol linux_device_register_handler undefined linker_load_file: /boot/kernel/mrsas_linux.ko - unsupported file type kldload: an error occurred while loading module mrsas_linux.ko. Please check dmesg(8) for more details.