From e21898b25ae82d55bd2e80b86e3ad61c1ed56643 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 6 May 2013 08:59:53 -0600 Subject: Oops.. this change should not have been in the last commit --- nuttx/configs/pirelli_dpl10/nsh_highram/ld.script | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/nuttx/configs/pirelli_dpl10/nsh_highram/ld.script b/nuttx/configs/pirelli_dpl10/nsh_highram/ld.script index 5bdefbe06..35fa84728 100644 --- a/nuttx/configs/pirelli_dpl10/nsh_highram/ld.script +++ b/nuttx/configs/pirelli_dpl10/nsh_highram/ld.script @@ -13,8 +13,8 @@ MEMORY { /* 0x800000-0x83ffff */ /* compal-loaded binary: our text, initialized data */ - LRAM (rw) : ORIGIN = 0x00800000, LENGTH = 128K - TRAM (rw) : ORIGIN = 0x00820000, LENGTH = 64K + LRAM (rw) : ORIGIN = 0x00800000, LENGTH = 0x00020000 + TRAM (rw) : ORIGIN = 0x00820000, LENGTH = 0x00010000 /* compal-loaded binary: our unitialized data, stacks, heap */ IRAM (rw) : ORIGIN = 0x00830000, LENGTH = 0x00010000 } @@ -34,7 +34,7 @@ SECTIONS PROVIDE(__start = .); KEEP(*(.text.start)) *(.text.start) - } > LRAM + } > TRAM /* exception vectors from 0x80001c to 0x800034 */ .text.exceptions 0x80001c : AT (LOADADDR(.text.start) + SIZEOF(.text.start)) { @@ -46,7 +46,8 @@ SECTIONS /* code */ . = ALIGN(4); - .text : { + .text (LOADADDR(.text.exceptions) + SIZEOF(.text.exceptions)) : + AT (LOADADDR(.text.exceptions) + SIZEOF(.text.exceptions)) { /* regular code */ *(.text*) /* always-in-ram code */ @@ -54,7 +55,7 @@ SECTIONS /* gcc voodoo */ *(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx) . = ALIGN(4); - } > LRAM + } > TRAM PROVIDE(_text_start = LOADADDR(.text)); PROVIDE(_text_end = LOADADDR(.text) + SIZEOF(.text)); @@ -66,7 +67,7 @@ SECTIONS KEEP(*(SORT(.ctors))) /* end of list */ LONG(0) - } > LRAM + } > TRAM PROVIDE(_ctor_start = LOADADDR(.ctors)); PROVIDE(_ctor_end = LOADADDR(.ctors) + SIZEOF(.ctors)); @@ -78,7 +79,7 @@ SECTIONS KEEP(*(SORT(.dtors))) /* end of list */ LONG(0) - } > LRAM + } > TRAM PROVIDE(_dtor_start = LOADADDR(.dtors)); PROVIDE(_dtor_end = LOADADDR(.dtors) + SIZEOF(.dtors)); @@ -86,16 +87,14 @@ SECTIONS . = ALIGN(4); .rodata : { *(.rodata*) - } > LRAM + } > TRAM PROVIDE(_rodata_start = LOADADDR(.rodata)); PROVIDE(_rodata_end = LOADADDR(.rodata) + SIZEOF(.rodata)); /* initialized data */ . = ALIGN(4); .data : { - _sdata = ABSOLUTE(.); *(.data) - _edata = ABSOLUTE(.); } > TRAM PROVIDE(_data_start = LOADADDR(.data)); PROVIDE(_data_end = LOADADDR(.data) + SIZEOF(.data)); -- cgit v1.2.3