针对freescale的coldfire系列mcu的开源bootloader源码colilo的优化代码
源代码在线查看: flash.ld.sram
MEMORY { flash : ORIGIN = 0xffe00000, LENGTH = 0x00100000 /* 1MB of flash (A[19] pulled high) */ ram : ORIGIN = 0x00600000, LENGTH = 0x00040000 /* 256Kbytes of sdram */ sram : ORIGIN = 0x20000000, LENGTH = 0x00018000 /* 96kbytes of sram */ } SECTIONS { .text : { _stext = . ; *(.text) *(.rodata) _etext = . ; } > flash .data : AT (ADDR(.text) + SIZEOF(.text)) { _sdata = . ; *(.data) _edata = . ; } > ram .fastdata : AT (ADDR(.text) + SIZEOF(.text) + SIZEOF(.data)){ _sfdata = . ; *(.fdata) *(.data.flasher_data) . = ALIGN(0x4) ; *(.data.flasher_code) . = ALIGN(0x4) ; _efdata = . ; } > sram .bss : AT (ADDR(.text) + SIZEOF(.text) + SIZEOF(.data) + SIZEOF(.fastdata)) { _sbss = . ; *(.bss) *(COMMON) _ebss = . ; } > ram }