summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/h8300/h8sim/startup/linkcmds
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-08-05 16:55:50 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-08-05 16:55:50 +0000
commitdb3ca1f596b2566a8dc3b5e0acd21c987ee0a3be (patch)
tree19ea14119bad4e604d94717514ab46cd9935ca50 /c/src/lib/libbsp/h8300/h8sim/startup/linkcmds
parent2002-08-01 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-db3ca1f596b2566a8dc3b5e0acd21c987ee0a3be.tar.bz2
2002-08-05 Joel Sherrill <joel@OARcorp.com>
* startup/bspstart.c, startup/linkcmds: Per PR247 , fix the linkcmds to avoid overlapping sections and reworked the way the heap and workspace are calculated.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/h8300/h8sim/startup/linkcmds8
1 files changed, 3 insertions, 5 deletions
diff --git a/c/src/lib/libbsp/h8300/h8sim/startup/linkcmds b/c/src/lib/libbsp/h8300/h8sim/startup/linkcmds
index b04a9728a1..739a7730c5 100644
--- a/c/src/lib/libbsp/h8300/h8sim/startup/linkcmds
+++ b/c/src/lib/libbsp/h8300/h8sim/startup/linkcmds
@@ -53,7 +53,7 @@ SECTIONS
_etext = .;
} >ram
- .tors : {
+ .tors SIZEOF(.text) + ADDR(.text): {
___ctors = . ;
*(.ctors)
___ctors_end = . ;
@@ -61,9 +61,10 @@ SECTIONS
*(.dtors)
___dtors_end = . ;
} >ram
- .data SIZEOF(.text) + ADDR(.text):
+ .data SIZEOF(.tors) + ADDR(.tors):
{
*(.data)
+ *(.gcc_exc*)
CONSTRUCTORS
_edata = .;
} >ram
@@ -77,9 +78,6 @@ SECTIONS
_stack_init = .;
_clear_end = .;
_WorkspaceBase = .;
- . += 64K; /* reserve some memory for workspace */
- _HeapBase = .;
- . += _HeapSize; /* reserve some memory for heap */
_end = .;
__end = .;
} >ram