[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unresolved symbol __divdi3 in module
In article <17403682811104@MAIL.leftcoast.net> you wrote:
> Hi,
>
> When inserting my module,insmod says:
>
> "Unresolved symbol __divdi3"
>
> __divdi3 is defined on archs like sparc,ia64 etc but not on
> i386. I understand that its some sort of gcc bug for long
> divisions, where gcc calls __divdi3 lib function. So one
> solution would be to replace all long divisions with right
> shifts, but this is not practical in my module since there
> are many such divisions.
>
> Is there any workaround or solution to this problem ?
write proper code ?
Feel free to post the url to the code so we can see what you're really
doing, maybe there are simple alternatives.
You can also just link the __divdi3 from gcc into your
module.... (no problem since the kernel and your module are GPL just
as the gcc code)
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.kernelnewbies.org/