summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sh/gensh2/startup/linkcmds
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/sh/gensh2/startup/linkcmds')
-rw-r--r--c/src/lib/libbsp/sh/gensh2/startup/linkcmds10
1 files changed, 4 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/sh/gensh2/startup/linkcmds b/c/src/lib/libbsp/sh/gensh2/startup/linkcmds
index 2f695f55a6..ab6e975368 100644
--- a/c/src/lib/libbsp/sh/gensh2/startup/linkcmds
+++ b/c/src/lib/libbsp/sh/gensh2/startup/linkcmds
@@ -44,6 +44,9 @@ ENTRY(_start)
/* These assignments load code into SH7045F EVB SRAM for monitor debugging */
+_RamBase = DEFINED(_RamBase) ? _RamBase : 0x00440000;
+_RamSize = DEFINED(_RamSize) ? _RamSize : 512K;
+
MEMORY
{
rom : o = 0x00400000, l = 0x00040000
@@ -117,6 +120,7 @@ SECTIONS
.plt : { *(.plt) }
.text . :
{
+ _start = .;
*(.text*)
*(.stub)
@@ -186,13 +190,7 @@ SECTIONS
_end = . ;
PROVIDE (end = .);
- _HeapStart = . ;
- . = . + 1024 * 20 ;
- PROVIDE( _HeapEnd = . );
-
_WorkSpaceStart = . ;
- . = 0x00480000 ;
- PROVIDE(_WorkSpaceEnd = .);
_CPU_Interrupt_stack_low = 0xFFFFF000;
_CPU_Interrupt_stack_high = 0xFFFFFFFF;