Add it to SUBDIR. To enable PECOFF, do the following: # modload /usr/lkm/compat_pecoff.o *then* # modload /usr/lkm/exec_pecoff.o