Date: Sun, 14 Jul 2019 02:22:32 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 239194] gcov-enabled kernel can't load modules Message-ID: <bug-239194-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239194 Bug ID: 239194 Summary: gcov-enabled kernel can't load modules Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: asomers@FreeBSD.org The gcov support added to the kernel in r344487 doesn't work with modules.= =20 Everything seems to be working for the kernel itself, but when I try to loa= d a module I get this error: > sudo kldload fdescfs kldload: an error occurred while loading module fdescfs. Please check dmesg= (8) for more details. > tail -n2 /var/log/messages Jul 13 20:14:08 fbsd-head kernel: kldload: fdescfs.ko: lost base for reltab Jul 13 20:14:08 fbsd-head kernel: linker_load_file: /boot/kernel.old/fdescf= s.ko - unsupported file type I don't observe the kldload failure when I build a GENERIC kernel using the amd64-gcc cross toolchain. I only see it when using the GCOV kernel. If I= cd to /usr/src/sys/modules/whatever and build the module there, then I _can_ l= oad it. However, coverage data is not collected. > sudo kldload /boot/modules/fusefs.ko > uname -a FreeBSD fbsd-head.lauralan.noip.me 13.0-CURRENT FreeBSD 13.0-CURRENT r349977 GCOV amd64 > cat sys/amd64/conf/GCOV=20 include GENERIC ident GCOV options LINDEBUGFS options GCOV --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-239194-227>