2 * This is the "template" linker script. It gets run through the C preprocessor
3 * (via cpp) to construct the real linker script.
6 /* our toolchain defines 'mips'. Undefine it so it doesn't get expanded */
17 * Neither RAMAPP (CFE as app) nor BOOTRAM (ROM area is writeable) implies
21 #if (!CFG_RAMAPP) && !(CFG_BOOTRAM)
31 * Embedded PIC mode provides an extra segment of goo for relocation tables.
34 PROVIDE (__runtime_reloc_start = .);
36 PROVIDE (__runtime_reloc_stop = .);
39 * When using function-sections, each fucntion has its own section with
40 * a name like .text.myfunction.
50 * If ROM, locate a copy of the data segment in the ROM area. Otherwise,
51 * we are loading like a regular application so take data segment from
52 * current value of "dot".
55 .data CFE_DATA_START :
56 AT ( LOADADDR(.text) + SIZEOF ( .text ) )
57 #elif ((!CFG_RAMAPP) && (!CFG_BOOTRAM))
58 .data CFE_DATA_START :
59 AT ( (LOADADDR(.text) + SIZEOF ( .text ) + 15) & 0xFFFFFFF0)
64 _gp = ALIGN(16) + 0x8000;