[U-Boot] [PATCH] dm: mips: Import libgcc components from Linux

Wolfgang Denk wd at denx.de
Fri Jul 27 21:37:28 CEST 2012


Dear Marek Vasut,

In message <1343414125-23359-1-git-send-email-marex at denx.de> you wrote:
> Import ashldr3, ashrdi3 and lshrdi3 to squash possible libgcc fp mismatch,
> resulting in the following warning:
> 
> mips-linux-gnu-ld: Warning: /usr/lib/gcc/mips-linux-gnu/4.7/libgcc.a(_lshrdi3.o) uses hard float, u-boot uses soft float
> mips-linux-gnu-ld: Warning: /usr/lib/gcc/mips-linux-gnu/4.7/libgcc.a(_ashldi3.o) uses hard float, u-boot uses soft float

We consider this a bug in the tool chain.  We provide a workarounf for
such broken tool chains, but it has to be enabled explicitly by
setting USE_PRIVATE_LIBGCC

> diff --git a/arch/mips/lib/Makefile b/arch/mips/lib/Makefile
> index 9244f31..a469e30 100644
> --- a/arch/mips/lib/Makefile
> +++ b/arch/mips/lib/Makefile
> @@ -34,6 +34,8 @@ else
>  COBJS-y	+= bootm.o
>  endif
>  
> +COBJS-y	+= ashldi3.o ashrdi3.o lshrdi3.o
> +

Please make this dependent on USE_PRIVATE_LIBGCC being set.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Our universe is a fragile house of atoms, held together by the mortar
of cause-and-effect. One magician would be two too many.
                        - Terry Pratchett, _The Dark Side of the Sun_


More information about the U-Boot mailing list