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

Haavard Skinnemoen haavard.skinnemoen at atmel.com
Tue Nov 4 10:51:59 CET 2008


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 :-)

Haavard


More information about the U-Boot mailing list