C语言开发
arm-linux-gnueabihf-gcc -Wall -nostdlib -c -O0 -o start.o start.s
arm-linux-gnueabihf-gcc -Wall -nostdlib -c -O0 -o main.o main.c
arm-linux-gnueabihf-ld -Ttext 0x87800000 -o ledc.elf start.o main.o
arm-linux-gnueabihf-objcopy -O binary -S ledc.elf ledc.binSECTIONS{
. = 0X87800000;
.text :
{
start.o
main.o
*(.text)
}
.rodata ALIGN(4) : {*(.rodata*)}
.data ALIGN(4) : { *(.data) }
__bss_start = .;
.bss ALIGN(4) : { *(.bss) *(COMMON) }
__bss_end = .;
}最后更新于