I am compiling a project for armv6-m cortex-m1 in C ++ (gcc). I use the -nostdlib flag (as needed). ld does not find _start. I understand that you need to attach crt0 from newlib. I cling. Does not find exit and something else. I cling. And so on ... Prompt the Orthodox way to pick up everything you need. I do not use startup.s. Interrupt vectors in a C ++ header file. Is it C ++ or not? Why ctr0 and so on does not cling to the machine?
ld=($toolchain)ldand replace it withld=($toolchain)g++. I do not remember the Makefile syntax, but the essence is this. - maestro