c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libg.a(lib_a-exit.o): In function `exit':
C:\msys\1.0\home\yagarto\newlib-build\arm-elf\newlib\libc\stdlib/../../../../../newlib-1.18.0/newlib/libc/stdlib/exit.c:65: undefined reference to `_exit'
c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libg.a(lib_a-sbrkr.o): In function `_sbrk_r':
C:\msys\1.0\home\yagarto\newlib-build\arm-elf\newlib\libc\reent/../../../../../newlib-1.18.0/newlib/libc/reent/sbrkr.c:60: undefined reference to `_sbrk'
c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libg.a(lib_a-writer.o): In function `_write_r':
C:\msys\1.0\home\yagarto\newlib-build\arm-elf\newlib\libc\reent/../../../../../newlib-1.18.0/newlib/libc/reent/writer.c:58: undefined reference to `_write'
c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libg.a(lib_a-closer.o): In function `_close_r':
C:\msys\1.0\home\yagarto\newlib-build\arm-elf\newlib\libc\reent/../../../../../newlib-1.18.0/newlib/libc/reent/closer.c:53: undefined reference to `_close'
c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libg.a(lib_a-fstatr.o): In function `_fstat_r':
C:\msys\1.0\home\yagarto\newlib-build\arm-elf\newlib\libc\reent/../../../../../newlib-1.18.0/newlib/libc/reent/fstatr.c:62: undefined reference to `_fstat'
c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libg.a(lib_a-isattyr.o): In function `_isatty_r':
C:\msys\1.0\home\yagarto\newlib-build\arm-elf\newlib\libc\reent/../../../../../newlib-1.18.0/newlib/libc/reent/isattyr.c:58: undefined reference to `_isatty'
c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libg.a(lib_a-lseekr.o): In function `_lseek_r':
C:\msys\1.0\home\yagarto\newlib-build\arm-elf\newlib\libc\reent/../../../../../newlib-1.18.0/newlib/libc/reent/lseekr.c:58: undefined reference to `_lseek'
c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libg.a(lib_a-readr.o): In function `_read_r':
C:\msys\1.0\home\yagarto\newlib-build\arm-elf\newlib\libc\reent/../../../../../newlib-1.18.0/newlib/libc/reent/readr.c:58: undefined reference to `_read'
collect2: ld returned 1 exit status
make: *** [uart_recv.elf] Error 1
复制代码
然后我勾选了 --nostdlib
出现了下面错误:
make all
'Building target: uart_recv.elf'
'Invoking: ARM Windows GCC C Linker'
arm-elf-gcc -nostdlib -Wl,-Map,uart_recv.map -mcpu=arm920t -g3 -ggdb -o"uart_recv.elf" ./tg_recv.o
c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008000
./tg_recv.o: In function `main':
F:\workspace\uart_recv\Debug/../tg_recv.c:10: undefined reference to `printf'
collect2: ld returned 1 exit status
make: *** [uart_recv.elf] Error 1
d:/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libg.a(lib_a-sbrkr.o): In function `_sbrk_r':
C:\msys\1.0\home\yagarto\newlib-build\arm-elf\newlib\libc\reent/../../../../../newlib-1.18.0/newlib/libc/reent/sbrkr.c:60: undefined reference to `_sbrk'
collect2: ld returned 1 exit status
make: *** [rtoscore.elf] Error 1