Re: Odd unresolved symbol thing

Jakub Jelinek (jj@sunsite.ms.mff.cuni.cz)
Thu, 15 Jan 1998 16:26:26 +0100 (MET)


> While hacking on my latest kernel project[1] I have come up
> against this little inconvenience:
>
> /lib/modules/2.1.79/fs/cdaudfs.o: unresolved symbol __divdi3
> /lib/modules/2.1.79/fs/cdaudfs.o: unresolved symbol __moddi3
>
> I _think_ that it's related to gcc trying to optimise some
> divides away when I refer to (x / CON) and (x % CON) within
> reach of each other.

No, it is just related to the fact that x or CON are long long.
You can steal those routines from gcc as well...
Or the other way is to get rid of long long divisions and such.

Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
Ultralinux - first 64bit OS to take full power of the UltraSparc
Linux version 2.0.32 on a sparc machine (291.64 BogoMips).
___________________________________________________________________