rescue.ld 698 字节
Newer Older
1 2 3 4 5
/*#OUTPUT_FORMAT(elf32-us-cris) */
OUTPUT_ARCH (crisv32)
/* Now that NAND support has been stripped, this file could be simplified,
 * but it doesn't do any harm on the other hand so why bother. */

6 7
MEMORY
	{
8 9 10 11
	bootblk : ORIGIN = 0x38000000,
	          LENGTH = 0x00004000
	intmem  : ORIGIN = 0x38004000,
		  LENGTH = 0x00005000
12 13 14 15 16 17
	}

SECTIONS
{
	.text :
	{
18
		_stext = . ;
19
		*(.text)
20 21 22 23 24
		*(.init.text)
		*(.rodata)
		*(.rodata.*)
		_etext = . ;
	} > bootblk
25 26 27
	.data :
	{
		*(.data)
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
		_edata = . ;
	} > bootblk
	.bss :
	{
		_bss = . ;
		*(.bss)
		_end = ALIGN( 0x10 ) ;
	} > intmem

	/* Get rid of stuff from EXPORT_SYMBOL(foo). */
	/DISCARD/ :
	{
	        *(__ksymtab_strings)
	        *(__ksymtab)
	}
43
}