Freescale MCF5445evb 参考测试代码
源代码在线查看: palladium_bootsram.lcf
#/* # * File: sdram.dld # * Purpose: Linker file for Palladium # * # * Notes: # */ MEMORY { text (RX) : ORIGIN = 0x00000000, LENGTH = 0 data (RW) : ORIGIN = AFTER(text), LENGTH = 0 bss (RW) : ORIGIN = AFTER(data), LENGTH = 0 } SECTIONS { ___SDRAM = 0x40000000; ___SDRAM_SIZE = (32 * 1024 * 1024); ___CORE_SRAM = 0x80000000; ___CORE_SRAM_SIZE = (2 * 1024); ___EXT_SRAM = 0xC0000000; ___EXT_SRAM_SIZE = (512 * 1024); ___BOOT_SRAM = 0x00000000; ___BOOT_SRAM_SIZE = (32 * 1024 * 1024); ___VECTOR_RAM = ___BOOT_SRAM; .text : { . = ALIGN(0x10); vectors.s (.text) *(.text) *(.rodata) . = ALIGN(0x10); } > text .data : { . = ALIGN(0x10); ___DATA_ROM = .; ___DATA_RAM = .; *(.data) *(.sdata) ___DATA_END = .; . = ALIGN(0x10); } > data .bss : { . = ALIGN(0x10); ___BSS_START = .; *(.sbss) *(SCOMMON) *(.bss) *(COMMON) ___BSS_END = .; . = ALIGN(0x10); } > bss ___HEAP_START = .; ___HEAP_END = ___HEAP_START + (256*1024); ___SP_END = ___HEAP_END; ___SP_INIT = ___SP_END + (8*1024); }