[U-Boot-Users] multiple definition of __udivsi3 when using divide operation on unsigned long numbers

2008-03-25 Thread Gururaja Hebbar K R
Hi, I am trying to compile uboot 1.3.1 for arm926ejs processor. i am using CodeSourcery arm-none-linux-gnueabi toolchain (gcc version 4.2.1 (CodeSourcery Sourcery G++ Lite 2007q3-51)) . i am trying to write a driver for our on board mmc controller. i need to do multiply and divide operation as

Re: [U-Boot-Users] multiple definition of __udivsi3 when using divide operation on unsigned long numbers

2008-03-25 Thread Dirk Behme
Gururaja Hebbar K R wrote: Hi, I am trying to compile uboot 1.3.1 for arm926ejs processor. i am using CodeSourcery arm-none-linux-gnueabi toolchain (gcc version 4.2.1 (CodeSourcery Sourcery G++ Lite 2007q3-51)) . i am trying to write a driver for our on board mmc controller. i need to

Re: [U-Boot-Users] multiple definition of __udivsi3 when using divide operation on unsigned long numbers

2008-03-25 Thread Gururaja Hebbar K R
Hi Dirk, Thanks for the information. i looked at he nand_util.c and used the same do_div in my code and was able to compile without any issues. Regards Gururaja Don't do this. Compiler/Linker then tries to use math from libraries coming with your tool chain. Normally, U-Boot should be