[U-Boot] Building for da830 fails

Timur Tabi
2010-05-07T15:30:32Z

Scott McNutt wrote:
> lib/libgeneric.a(display_options.o): In function `print_size':
> /home/smcnutt/27xx/u-boot.git/lib/display_options.c:66: undefined
> reference to `__udivdi3'
> /home/smcnutt/27xx/u-boot.git/lib/display_options.c:69: undefined
> reference to `__umoddi3'
> /home/smcnutt/27xx/u-boot.git/lib/display_options.c:70: undefined
> reference to `__udivdi3'

Man, I knew ARM sucked, but I didn't know it was this bad :-)

I was going to suggestion replacing the division operations with calls to
lldiv(), but we're actually doing a 64-by-64 bit division here:

n = size / d;

which means that in order to support support printing 64-bit numbers on ARM,
we might need to completely rewrite print_size() to avoid division on 64-bit
numbers.

Wolfgang, do you have any suggestions?

--
Timur Tabi
Linux kernel developer at Freescale