[U-Boot] [PATCH 1/2 v6] Make libgcc inclusion from common Makefile overridable by platform config file

Dirk Behme dirk.behme at googlemail.com
Sun Jul 12 10:15:31 CEST 2009


Stefan Roese wrote:
> Hi Dirk,
> 
> On Sunday 12 July 2009 09:54:12 Dirk Behme wrote:
>> While without CONFIG_SYS_64BIT_VSPRINTF everything compiles fine with
>> both libgcc patches applied, enabling CONFIG_SYS_64BIT_VSPRINTF still
>> results in
>>
>> lib_generic/libgeneric.a(vsprintf.o): In function `put_dec':
>>
>> lib_generic/vsprintf.c:242: undefined reference to `__umoddi3'
>>
>>
>> lib_generic/vsprintf.c:242: undefined reference to `__udivdi3'
>>
>> Any idea why this still happens *with* libgcc patches? Any idea how to
>> fix this? Add __umoddi3 and __udivdi3 to libgcc patch, too?
> 
> I have to admit that I'm not sure why this is the case. But I suggest that you 
> take a look at Simon's patch sent to the list a few days ago:
> 
> [PATCH 5/8]: Use do_div from div64.h for vsprintf
> 
> This should fix this issue.
> 
> Let me know if this helps.

Yes, thanks!

For the archives: With

http://lists.denx.de/pipermail/u-boot/2009-July/055599.html
http://git.denx.de/?p=u-boot/u-boot-arm.git;a=commit;h=07a6acbe20357ebc2af36ac32e7029828d895a62
http://git.denx.de/?p=u-boot/u-boot-arm.git;a=commit;h=40cebd2af1379f2cd815e2a7f3af809f828878fe

I'm now able to enable CONFIG_SYS_64BIT_VSPRINTF for all OMAP3 boards 
and compile it without (tool chain related) warnings. OMAP3 
CONFIG_SYS_64BIT_VSPRINTF patch will be sent, soon.

Thanks

Dirk


More information about the U-Boot mailing list