From 250095c7bc783f415b3958b1099216e8953600e7 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 24 Jan 2011 22:10:45 +0100 Subject: The heap needs to be anonymous; adding generic __heap_start and __heap_end symbols. Also marking the beginning and the end of the rom-to-ram sections. --- arch/arm/lpc17xx/ldscript | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'arch/arm/lpc17xx/ldscript') diff --git a/arch/arm/lpc17xx/ldscript b/arch/arm/lpc17xx/ldscript index 0f8fe23..422fe72 100644 --- a/arch/arm/lpc17xx/ldscript +++ b/arch/arm/lpc17xx/ldscript @@ -43,6 +43,9 @@ PROVIDE(__cs3_stack_size = __cs3_region_start_ram + __cs3_region_size_ram - _end PROVIDE(__cs3_heap_start = _end); PROVIDE(__cs3_heap_end = __cs3_region_start_ram + __cs3_region_size_ram); +PROVIDE(__heap_start = __cs3_heap_start); +PROVIDE(__heap_end = __cs3_heap_end); + SECTIONS { .text : @@ -133,6 +136,12 @@ SECTIONS __cs3_region_size_rom = LENGTH(rom); __cs3_region_num = 1; + .data_begin : + { + . = ALIGN(8); + __rom_data_begin = .; + } > rom + .data : { __cs3_region_start_ram = .; @@ -155,6 +164,12 @@ SECTIONS _end = .; __end = .; } >ram AT>rom + .data_end : + { + . = ALIGN(8); + __rom_data_end = .; + } > rom + /* This used for USB RAM section */ .usb_ram (NOLOAD): { -- cgit v1.2.3