嵌入式交叉工具链

步骤如下:

1.编译  arm-linux-gcc -g -o xx.S

2.链接  arm-linux-ld  -Txx.lds  -o  xx.elf  xx.o...

3.arm-linux-readelf -a(all)/-d(查看程序使用的库)  xx.elf

4.反汇编  arm-linux-objdump -D -S xx >xxx

5.文件转换器 arm-linux-objcopy -o binary xx.elf xx.bin

截图如下:

原文地址:https://www.cnblogs.com/wxb20/p/6236103.html