[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unresolved symbol __divdi3 in module
> > When inserting my module,insmod says:
> >
> > "Unresolved symbol __divdi3"
> > i386. I understand that its some sort of gcc bug for long
> > divisions, where gcc calls __divdi3 lib function. So one
> > Is there any workaround or solution to this problem ?
>
> write proper code ?
Writing proper is code is always the right solution :)
The problem was caused by 64 bits by 32 bits division.
Replacing all such division (eg. those involvin loff_t etc)
solved the problem.
Swapnil.
--
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/