Missing startup file crt0.o

OP #3097445
When I start compiling for ARM I find some GNU GCC tool sets like 
Yagarto and emIDE. The first is just a tool set that can be integrated 
in any development environment, the latter is a complete IDE.

I would prefer to use the stand alone tool set. But when I compile a 
hello world with Yagarto program I get the error message

ld.exe: cannot find crt0.o: No such file or directory

But the GNU GCC version in emIDE compiles out-of-the-box. You can find a 
crt0.o in the product tree.

I doubt that Yagarto just offers an incomplete tool set. What is the 
object to configure the tool set that it can't be used with additional 
tricks? What am I missing with this crt0.o? What is the preferred way to 
setup a project with a tool set lacking crt0.o
#3098381
Hello Helge,

have you try one of my example here:
http://www.emb4fun.de/arm/examples/index.html

No crt0.o is needed. I have removed the libnosys from
the YAGARTO toolchain because it makes some problem
to create the toolchain itself.

My experience is that you need your own crt0 or startup
file for your project/hardware. In case of my examples
you will find a startup_stm32f4xx.s in the M4 example.

Best regards,
Michael

Reply

A question of your own? This thread is over 13 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.