gcov on beagle-xm with kernel module
Hi,
I still try to use gcov on the beagle-xm on a kernel module and I'm not sure this is the right mailing list to ask.
I just build it with the following modification to the makefile:
GCOV_PROFILE_debugfs.o := y
and it builds;)
... but as soon as I try and insmod I get the following:
insmod debugfs.ko
Error: could not insert module debugfs.ko: Invalid module format
and dmesg says:
[ 1628.759552] debugfs: unknown relocation: 38
Did anyone see something like this before here?
Apparently I'm not the only one having this kind of problem:
http://old.nabble.com/Problem-with-applying-Gcov-tool-to-kernel-module-to28299744.html
Does this look like a compiler bug?
Regards,
Robert..."Never express yourself more clearly than you think." - Niels Bohr
My public pgp key is available,at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1
Hi,
Looks like it's an issue with the arm eabi compiler producing code, which the kernel gcov framework can't deal with.
I guess there are 2 options:
1) toolchain not eabi (not feasible)
2) patch gcov framework in kernel
Regards,
Robert
..."In the beginning, there was software. And it wasn't good."
My public pgp key is available,at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1