如果想让开发板重启只需要跳转到0x00000000,这是上电后执行第一条程序的位置。
reboot.s
.text
mov pc, #0
编译命令
arm-elf-as -o reboot.o reboot.s
arm-elf-objcopy -O binary -R .comment -R .note -S reboot.o reboot.bin
objcopy命令说明
-S --strip-all Remove all symbol and relocation information
-R --remove-section <name> Remove section <name> from the output
-O --output-target <bfdname> Create an output file in format <bfdname>