/* Example Linker Script for linking NS CR16 elf32 files. */
-/* The next line forces the entry point (${ENTRY} in this script)
- to be entered in the output file as an undefined symbol.
- It is needed in case the entry point is not called explicitly
- (which is the usual case) AND is in an archive. */
-
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
-EXTERN(${ENTRY})
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY(${ENTRY})}
/* Define memory regions. */
MEMORY
The heap and stack are aligned to the bus width, as a speed optimization
for accessing data located there. */
- .heap :
+ .heap (NOLOAD) :
{
. = ALIGN(4);
__HEAP_START = .;
. += 0x2000; __HEAP_MAX = .;
} > ram
- .stack :
+ .stack (NOLOAD) :
{
. = ALIGN(4);
. += 0x6000;
__STACK_START = .;
} > ram
- .istack :
+ .istack (NOLOAD) :
{
. = ALIGN(4);
. += 0x100;