最后我连 获取windows所有进程完整命令行小技巧 这个都请出来了,终于找到完整的编译链接指令.
链接指令:
arm-none-eabi-gcc.exe "C:\Tools\gcc-arm-none-eabi-4_9-2015q2-20150609-win32\bin\arm-none-eabi-gcc" @".\Objects\test2.lnp" 20512
打开 Objects\test2.lnp 文件:
-T ./f1c100s.ld -o "./Objects/test2.elf" "./objects/sys-clock.o" "./objects/sys-copyself.o" "./objects/sys-dram.o" "./objects/sys-mmu.o" "./objects/sys-spi-flash.o" "./objects/sys-uart.o" "./objects/start.o" "./objects/exception.o" "./objects/memcpy.o" "./objects/memset.o" "./objects/main.o" -nostartfiles
在线
继续跟踪
arm-none-eabi-ld -T ./f1c100s.ld -nostdlib \
-o Objects/test2.elf objects/sys-clock.o \
objects/sys-copyself.o objects/sys-dram.o objects/sys-mmu.o \
objects/sys-spi-flash.o objects/sys-uart.o objects/start.o \
objects/exception.o objects/memcpy.o objects/memset.o \
objects/main.o
arm-none-eabi-ld -T ./f1c100s.ld -nostdlib \
-o "./Objects/test2.elf" "./objects/sys-clock.o" \
"./objects/sys-copyself.o" "./objects/sys-dram.o" "./objects/sys-mmu.o" \
"./objects/sys-spi-flash.o" "./objects/sys-uart.o" "./objects/start.o" \
"./objects/exception.o" "./objects/memcpy.o" "./objects/memset.o" \
"./objects/main.o"
发现上面的命令行链接正常
下面的不正常。
在线