From: Wolfgang Denk Date: Fri, 27 Jul 2012 21:37:28 +0200 Subject: [U-Boot] [PATCH] dm: mips: Import libgcc components from Linux In-Reply-To: <1343414125-23359-1-git-send-email-marex@denx.de> References: <1343414125-23359-1-git-send-email-marex@denx.de> Message-ID: <20120727193728.A45B7203AC0@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Marek Vasut, In message <1343414125-23359-1-git-send-email-marex@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_