Re: cannot find crt0.o file
Dalas Yoo <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <CALb-SNpH4pFBBgGEFWGE+CqN0TSEhD_hBmMZEghyFuB8QChRtQ@mail.gmail.com> |
Interesting. Thanks for your help! Regards, Dalas 2022년 3월 25일 (금) 오후 7:58, R. Diez <[email protected]>님이 작성: > > > [...] > > With the configuration, the newlib was successfully built. But when > trying > > to compile and link the program, the arm-none-eabi-gcc prints error > "crt0.o > > not found". > > This is a common annoyance with GCC for ARM. I filed a request about it > more than 5 years ago: > > Bug 68605 - Add -mno-crt0 to disable automatic crt0 injection > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68605 > > I normally just add an empty file called crt0.c (or crt0.cpp) to my > project, search for it here: > > https://github.com/rdiez/JtagDue/blob/master/Project/Makefile.am > > The comments around it should provide you with enough information. > > Regards, > rdiez >