[U-Boot] question: U-boot linking against libgcc

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Tue Nov 4 14:03:07 CET 2008


On 10:51 Tue 04 Nov     , Haavard Skinnemoen wrote:
> Wolfgang Denk <wd at denx.de> wrote:
> > In message <3efb10970810310111j5a82af83p124011a76b45ebf at mail.gmail.com> you wrote:
> > > 
> > > In U-boot I see that it links against libgcc. Why is this?  
> > 
> > Because the GNU compiler references code form it's library.
> > 
> > > I believe this relation should not be needed.  
> > 
> > I believe it is needed.
> > 
> > > I could provide a patch to remove this relation...  
> > 
> > Hm.. try it out. I wouldbe surprised if it worked.
> 
> Linux works fine without libgcc. I only had to add three 64-bit shift
> routines for avr32.
> 
> And as an added bonus, you get a linker error if you introduce an
> open-coded 64-bit division by mistake :-)
It's simple to do it on arm

Best Regards,
J.


More information about the U-Boot mailing list