BrianSidebotham / arm-tutorial-rpi

Raspberry-Pi Bare Metal Programming in C Tutorial
https://www.valvers.com/open-software/raspberry-pi/bare-metal-programming-in-c-part-1/
MIT License
585 stars 177 forks source link

Adding options -lc -specs=nosys.specs allows arm-none-eabi-gcc v4.9 for compilation #8

Closed enthusiasticgeek closed 4 years ago

enthusiasticgeek commented 8 years ago

I am wondering if adding options "-lc -specs=nosys.specs" to the build.sh (https://stackoverflow.com/questions/13235748/linker-error-on-a-c-project-using-eclipse) for compiling with arm-none-eabi-gcc v4.9 is considered? It seems to remove all compilation problems with version 4.9 if any.

BrianSidebotham commented 5 years ago

Thanks @enthusiasticgeek I will fix this soon as I progress the tutorials so RPi3 and RPi3B+ are covered. Then I'll catapault the gcc version forward to a recent version. Thanks for the specs, I think that may be better than what's there right now.

BrianSidebotham commented 4 years ago

We're using gcc 9.x now, and everything appears to be working well.