I am trying to compile a project using the GNU toolchain and I am getting a linker error that says "undefined reference to '_start'. This same project compiled and linked fine with the Keil ARM took chain. I have tried all the suggested and solutions that I found online and none of them worked for me. Here are some of the things I already did:
- I have a linker script at the root of the project and I listed its path in the Options for target-Linker
- "Do not use Standard System Startup Files" is checked
- "Do not use Standard System Libraries" is unchecked
- I have the startup file for my target which is ARM Cortex M3
In Options for target-CC
- "Enable APCS (ARM Procedure Call Standard)" - checked
- "Generage Stack check code" - unchecked
- "Support Call between ARM and THUMB Instruction Set" - checked
- "Strict ANSI C" - unchecked
- "Compile Thumb Code" - checked
Any suggestion is appreciated!
Thanks!