It appears that the KLD build process is missing a ctfmerge at the end, and
this results in KLDs with incomplete CTF information.

Here is a patch that fixes this.  I verified it on amd64 with various KLDs.

Before:
# ctfdump /boot/kernel/if_cxgb.ko | wc -l
 2269
# ctfdump /boot/kernel/zfs.ko | wc -l
430

After:
# ctfdump /boot/kernel/if_cxgb.ko | wc -l
6568
# ctfdump /boot/kernel/zfs.ko | wc -l
15032

It is wasteful to have CTF information in both the .ko and the .ko.symbols file
but this is what the kernel does too.

Regards,
Navdeep

Attachment: ctf-kld.patch
Description: Binary data

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[email protected]"

Reply via email to