arm-linux-gcc -c -O2 -o start.o start.S
arm-linux-ld -nostadib -o start -Tlayout.lds start.o
arm-linux-ld -nostadib -Map boot.map -o start -Tlayout.lds start.o
boot.map 还差点其它参数?信息不全啊
生成2进制文件:
arm-linux-objcopy -O binary start start.bin
反汇编:
arm-linux-obdump -D start > start.asm
生成sysmap:
arm-linux-nm boot | grep -v '(compiled)\|(.o$$)\|([aUw] )\|(..ng$$)\|(LASH[RL]DI)' | sort > System.map
阅读(1373) | 评论(0) | 转发(0) |