As you can see I'm a real newby so I take a long time to find the macro
do_div() in the linux kernel. This macro does all I want and using it will
avoid gcc to emits the symbols '__divdi3' and '__moddi3'...
De : email@example.com [mailto:firstname.lastname@example.org]
De la part de David Sanchez
Envoyé : lundi 18 juillet 2005 16:30
À : email@example.com
Objet : undefined symbol '__divdi3' & '__moddi3' on linux kernel 2.6.10
I'm a newby on Linux/Mips more my English is very poor so sorry...
But I have a big problem (for me):
I want to cross-compile my linux kernel 2.6.10 on my PC i386 for mips32
(alchemy AU1550) CPU.
I developed a module that contains some operations on types loff_t (i.e
long long) such as div and mod. The code is in a foo.c file.
I successfully built a cross toolchain using:
The bin utils (Bintuils-2.15), the glibc headers (glibc-2.3.5) and the
gcc core (gcc-3.4.4).
The compilation of the kernel works but unfortunately the link generates
two error messages on the file foo.c:
Undefined reference to '__divdi3'
Undefined reference to '__moddi3'
What I'm doing wrong ?
Why the gcc doesn't embed the symbol implementation ?
And so where can I found an implementation ?
Thanks for all your help