Determine location of linker error (udivdi3, divdi3)

时间:2015-11-27 20:39:28

标签: c linux makefile linker linker-errors

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?是否真的没有回答这个问题,或者我不太明白该怎么做。有没有人有什么建议?我试图使用LD_DEBUG,但我不确定这是否有意义。

0 个答案:

没有答案