ads_ram.ld

来自「arm平台上的uclinux系统全部源代码」· LD 代码 · 共 69 行

LD
69 行
字号
MEMORY 	{	sram   : ORIGIN = 0x00000000, LENGTH = 0x40000	flash  : ORIGIN = 0x00200000, LENGTH = 0x200000	dram   : ORIGIN = 0x00400000, LENGTH = 0x200000	eram   : ORIGIN = 0x00600000, LENGTH = 1	}SECTIONS{	/*	 * Put exception vector table in the beginning of SRAM	 * (it must start at 0x00000000 anyway	 */	.ramvec :	{		_ramvec = . ;		*(.ramvec)	} > sram	/*	 * Let's just define symbols for the flash	 */	_flash_start = 0x00200000;	_flash_size  = 0x00200000;	/*	 * Now let's load the whole image into DRAM. We'll put it into the	 * end of it to make the life easier	 */	.romvec :	{		_romvec = . ;		*(.romvec)	} > dram        .text :	{		text_start = . ;       		*(.text)		_etext = . ;		__data_rom_start = ALIGN ( 4 ) ;        } > dram	        .data :	{	__data_start = . ;        *(.data)	_edata = . ;	edata = ALIGN( 0x10 ) ;        } > dram        .bss :        {	__bss_start = ALIGN( 0x10 ) ;	__data_end = ALIGN( 0x10 ) ;	*(.bss)	*(COMMON)	end = ALIGN( 0x10 ) ;	_end = ALIGN( 0x10 ) ;	} > dram	.eram :	{	_boot_stack = . - 4;	_ramend = . ;	} > eram}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?