kernel module load attempt missing symbol

  • From: Patrick Welche <prlw1@xxxxxxxxx>
  • To: rumpkernel-users@xxxxxxxxxxxxx
  • Date: Sun, 15 Jan 2017 20:12:14 +0100

Just had a go at loading a kernel module on NetBSD-current/amd64:

export LD_BIND_NOW=1
export RUMP_SERVER=unix:///tmp/sock
rump_allserver -vs -lrumpdev_miiphy -lrumpdev_usb -m 
/stand/amd64/7.99.59/modules/if_axe/if_axe.kmod unix:///tmp/sock

...
NetBSD 7.99.59 (RUMP-ROAST)
...
kern.module.path=/stand/amd64/7.99.59/modules
...
kobj_checksyms, 979: [if_axe]: linker error: symbol `rumpns_usb_match_device' 
not found
WARNING: module error: unable to affix module `/module.mod', error 8
module load failed: Exec format error

Yet

$ nm -g /usr/lib/librumpdev_usb.so.0.0 | grep usb_match_device
000000000000d020 T rumpns_usb_match_device

Am I right in thinking that given LD_BIND_NOW=1 I would have seen an error
had librumpdev_usb not been loaded? But then why is the symbol not found?


Cheers,

Patrick

Other related posts:

  • » kernel module load attempt missing symbol - Patrick Welche