summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sh/simsh4/startup/linkcmds
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/sh/simsh4/startup/linkcmds')
-rw-r--r--c/src/lib/libbsp/sh/simsh4/startup/linkcmds20
1 files changed, 7 insertions, 13 deletions
diff --git a/c/src/lib/libbsp/sh/simsh4/startup/linkcmds b/c/src/lib/libbsp/sh/simsh4/startup/linkcmds
index 29ffdd6c8d..87d686fdb5 100644
--- a/c/src/lib/libbsp/sh/simsh4/startup/linkcmds
+++ b/c/src/lib/libbsp/sh/simsh4/startup/linkcmds
@@ -25,11 +25,11 @@ OUTPUT_FORMAT("coff-sh")
OUTPUT_ARCH(sh)
ENTRY(_start)
-_HeapSize = DEFINED(_HeapSize) ? _HeapSize : (512 * 1024);
-_WorkspaceSize = DEFINED(_WorkspaceSize) ? _WorkspaceSize : (1024 * 1024);
-
/* These assignments load code into SH7045F EVB SRAM for monitor debugging */
+_RamBase = DEFINED(_RamBase) ? _RamBase : 0x00000000;
+_RamSize = DEFINED(_RamSize) ? _RamSize : 0x01000000;
+
MEMORY
{
ram : o = 0x00000000, l = 0x01000000
@@ -84,6 +84,7 @@ SECTIONS
.plt : { *(.plt) }
.text . :
{
+ _start = .;
*(.text*)
*(.stub)
@@ -154,21 +155,14 @@ SECTIONS
PROVIDE (end = .);
. = ALIGN(16);
- _HeapStart = . ;
- . = . + _HeapSize ;
- PROVIDE( _HeapEnd = . );
-
- . = ALIGN(16);
- _WorkSpaceStart = . ;
- . = . + _WorkspaceSize ;
- PROVIDE(_WorkSpaceEnd = .);
-
- . = ALIGN(16);
.stack . : {
. = . + 4096;
}
. = ALIGN(16);
+ _WorkSpaceStart = . ;
+
+ . = ALIGN(16);
_CPU_Interrupt_stack_low = . ;
_CPU_Interrupt_stack_high = _CPU_Interrupt_stack_low + 4096 ;