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

Hello Wolfgang,
In U-boot I see that it links against libgcc. Why is this? I believe this relation should not be needed. I could provide a patch to remove this relation...
Kind Regards,
Remy

Dear Remy,
In message 3efb10970810310111j5a82af83p124011a76b45ebf@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.
Best regards,
Wolfgang Denk

Wolfgang Denk wd@denx.de wrote:
In message 3efb10970810310111j5a82af83p124011a76b45ebf@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

On 10:51 Tue 04 Nov , Haavard Skinnemoen wrote:
Wolfgang Denk wd@denx.de wrote:
In message 3efb10970810310111j5a82af83p124011a76b45ebf@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.
participants (4)
-
Haavard Skinnemoen
-
Jean-Christophe PLAGNIOL-VILLARD
-
Remy Bohmer
-
Wolfgang Denk