summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc55xx
blob: 2c4e1e3f7ba059b1e72d501852620cfc3f2fe3ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
bsp_ram_start = ORIGIN (RAM);
bsp_ram_size = LENGTH (RAM) + LENGTH (NOCACHE);
bsp_ram_end = bsp_ram_start + bsp_ram_size;

bsp_rom_start = ORIGIN (ROM);
bsp_rom_size = LENGTH (ROM);
bsp_rom_end = bsp_rom_start + bsp_rom_size;

INCLUDE linkcmds.base

SECTIONS {
	.work_bonus : {
		/*
		 * This section will occupy the remaining RAM_EXT region and may
		 * contain parts of the RTEMS work space and heap.
		 */
		bsp_section_work_bonus_begin = .;
		. += ORIGIN (RAM_EXT) + LENGTH (RAM_EXT) - ABSOLUTE (.);
		bsp_section_work_bonus_end = .;
	} > RAM_EXT AT > RAM_EXT
	bsp_section_work_bonus_size = bsp_section_work_bonus_end - bsp_section_work_bonus_begin;
}