On 29 Aug 2020, at 0:16, Bjoern A. Zeeb wrote: > Hi, > > I’ve been seeing on both i386 and arm64 builds where I tested that > loading modules from loader will then fail by the kernel link in > certain situations. I’ve created an i386 example where I do load a > few modules from loader to show what I think the problem is. > > You may notice in the example output below that it seems modules > depending on other loaded modules which seem to fail; e.g., ipfw seems > to load but ipfw_* not; pf.ko seems to load but pflog.ko not, > netgraph.ko seems to load but ng_*.ko fail. > > Anyone any ideas how I manage this? > > Trying to load them from console later using kldload seems to have > similar issues. I wonder if I am missing something essential in my > custom kernel builds or if this is a regression in head? Turns out this was a leaked strip command without --strip-debug which removed all the symbols. Sadly I checked inside the install tree but not on the finalized filesystem image. /bz > Preloaded elf kernel "/boot/kernel/kernel" at 0x2da2000. > Preloaded md_image "/base13-r364939" at 0x2daa650. > Preloaded elf module "/boot/kernel/pf.ko" at 0x2daa6a0. > Preloaded elf module "/boot/kernel/pflog.ko" at 0x2daaa58. > Preloaded elf module "/boot/kernel/ipfw_nat.ko" at 0x2daadec. > Preloaded elf module "/boot/kernel/ipfw.ko" at 0x2dab184. > Preloaded elf module "/boot/kernel/libalias.ko" at 0x2dab540. > Preloaded elf module "/boot/kernel/ipfw_nat64.ko" at 0x2dab900. > Preloaded elf module "/boot/kernel/ipfw_nptv6.ko" at 0x2dabcc0. > Preloaded elf module "/boot/kernel/ipfw_pmod.ko" at 0x2dac058. > Preloaded elf module "/boot/kernel/mac_ntpd.ko" at 0x2dac3f0. > Preloaded elf module "/boot/kernel/netgraph.ko" at 0x2dac760. > Preloaded elf module "/boot/kernel/ng_ksocket.ko" at 0x2dacb20. > Preloaded elf module "/boot/kernel/ng_l2tp.ko" at 0x2dace90. > Preloaded elf module "/boot/kernel/ng_ppp.ko" at 0x2dad1fc. > Preloaded elf module "/boot/kernel/ng_iface.ko" at 0x2dad568. > Preloaded elf module "/boot/kernel/ng_tcpmss.ko" at 0x2dad928. > Preloaded elf module "/boot/kernel/ng_socket.ko" at 0x2dadc70. > Preloaded elf module "/boot/kernel/ng_tee.ko" at 0x2dae030. > link_elf: symbol pf_rules_lock undefined > KLD file pflog.ko - could not finalize loading > link_elf: symbol LibAliasAddServer undefined > KLD file ipfw_nat.ko - could not finalize loading > link_elf: symbol layer3_chain undefined > KLD file ipfw_nat64.ko - could not finalize loading > link_elf: symbol layer3_chain undefined > KLD file ipfw_nptv6.ko - could not finalize loading > link_elf: symbol layer3_chain undefined > KLD file ipfw_pmod.ko - could not finalize loading > link_elf: symbol M_NETGRAPH undefined > KLD file ng_ksocket.ko - could not finalize loading > link_elf: symbol M_NETGRAPH_MSG undefined > KLD file ng_l2tp.ko - could not finalize loading > link_elf: symbol M_NETGRAPH_MSG undefined > KLD file ng_ppp.ko - could not finalize loading > link_elf: symbol M_NETGRAPH_MSG undefined > KLD file ng_iface.ko - could not finalize loading > link_elf: symbol M_NETGRAPH undefined > KLD file ng_tcpmss.ko - could not finalize loading > link_elf: symbol M_NETGRAPH_MSG undefined > KLD file ng_socket.ko - could not finalize loading > link_elf: symbol M_NETGRAPH undefined > KLD file ng_tee.ko - could not finalize loading > _______________________________________________ > freebsd-current_at_freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe_at_freebsd.org"Received on Sat Aug 29 2020 - 13:57:52 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:25 UTC