I'm trying to compile my driver in a 32 bit version of the Linux kernel, and I'm getting linker errors due to not properly calling the correct functions to do 64-bit division. The problem is that I have no idea where to look for these. Is there any effective way to find the location or at least the file which is causing the errors?
ERROR: "__udivdi3" [driver.ko] undefined!
ERROR: "__divdi3" [driver.ko] undefined!
Edit: __udivdi3 undefined — how to find the code that uses it? didn't really answer the question, or I don't quite understand how to do it. Does anyone have any suggestions? I was attempting to use LD_DEBUG, but I'm not sure if that makes sense.