Freescale ColdFire MCF537x 家族的参考代码
源代码在线查看: m5373evb_sdram.ld
/* * File: sdram.dld * Purpose: Linker file for M5373EVB * * Notes: */ MEMORY { sdram : ORIGIN = 0x40000000, LENGTH = 32M ram : ORIGIN = 0x80000000, LENGTH = 32K } SECTIONS { __SDRAM = 0x40000000; __SDRAM_SIZE = (16 * 1024 * 1024); __CORE_SRAM = 0x80000000; __CORE_SRAM_SIZE = (32 * 1024); __EXT_SRAM = 0xC0000000; __EXT_SRAM_SIZE = (512 * 1024); __FLASH = 0x00000000; __FLASH_SIZE = (2 * 1024 * 1024); __PARAMS = 0x00004000; __PARAMS_SIZE = 0x50; __VECTOR_RAM = 0x40000000; .sram :{mcf537x_lo.o(.text)} > ram .sysinit :{sysinit.o(.text)} > . .clock :{clock.o(.text)} > . .vectors : {vectors.o(.text)} > sdram .text ALIGN(0x10) : > . .rodata ALIGN(0x10) : > . __DATA_ROM = .; __DATA_RAM = .; .data ALIGN(0x10) : > . __DATA_END = .; __BSS_START = .; .bss ALIGN(0x10) : > . __BSS_END = .; . = ALIGN(0x10); __HEAP_START = .; __HEAP_END = __HEAP_START + (256*1024); __SP_END = __HEAP_END; __SP_INIT = __SP_END + (8*1024); }