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

Stefan Roese sr at denx.de
Sun Jul 12 10:02:46 CEST 2009


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.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================


More information about the U-Boot mailing list