#连接
arm-linux-ld -Tboot.lds -o a.out $^

#将elf文件转换为bin
arm-linux-objcopy -O binary -S a.out a.bin



#boot.lds文件

SECTIONS {

    . = 0x30000000;
    .text          :   { *(.text) }
    .rodata ALIGN(4) : {*(.rodata)}
    .data ALIGN(4) : { *(.data) }
    .bss ALIGN(4)  : { *(.bss)  *(COMMON) }
}

相关文章:

  • 2021-06-06
  • 2022-02-13
  • 2022-01-04
  • 2021-05-25
猜你喜欢
  • 2021-06-11
  • 2021-09-10
  • 2021-09-16
  • 2022-01-15
  • 2021-09-08
  • 2021-03-31
  • 2022-12-23
相关资源
相似解决方案