ram-ln.cmd~

来自「This a simple bootloader for AT91SAM7{S,」· CMD~ 代码 · 共 49 行

CMD~
49
字号
/*   Linker options for loading a program in RAM on the AT91SAM7S256   This goes with ram-crt.s   by Adam Pierce http://www.doctort.org/adam   I'm assuming here that the SAM-BA leaves the system in user mode with a   stack and everything already configured.   The AT91SAM7S256 has RAM starting from 0x00200000 to 0x0020FFFF. SAM-BA reserves   some of that so we have a usable range of 0x00202000 to 0x0020FFFF.*//* Define the entry point of the program */
ENTRY(_init)

/* RAM address range for the AT91SAM7S256 minus the amount used by SAM-BA */
MEMORY 
{
	ram : ORIGIN = 0x00202000, LENGTH = 56K
}
/* Map all the sections used by the C compiler to RAM */
SECTIONS
{
	.text : /* The .text section is where the C compiler will put it's code */
	{		*(.text)
		*(.rodata)		*(.rodata.str1.4)
		*(.glue_7)  /* The glue sections are required by the linker for it's own */
		*(.glue_7t) /* internal weirdness. */		_etext = .;
	} >ram

	.data :	/* The .data section is for C constants and initialised variables */
	{
		_data = .;
		_edata = .;
	} >ram

	.bss :	/* The .bss section is for C variables */
	{
		_bss_start = .;
	} >ram

	_bss_end = . ;
}

⌨️ 快捷键说明

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