summaryrefslogtreecommitdiff
path: root/nuttx/configs/skp16c26/ostest/ld.script
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-02-08 22:55:04 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-02-08 22:55:04 +0000
commit6957b39cd8d76efefad682933430074023842c96 (patch)
treecf900eec46b9c7119bf0e0028acd2107789bfd4f /nuttx/configs/skp16c26/ostest/ld.script
parentdd3dedf14c0a7949f15aa207906764586419e531 (diff)
downloadpx4-nuttx-6957b39cd8d76efefad682933430074023842c96.tar.gz
px4-nuttx-6957b39cd8d76efefad682933430074023842c96.tar.bz2
px4-nuttx-6957b39cd8d76efefad682933430074023842c96.zip
Addng M16C logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1485 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/skp16c26/ostest/ld.script')
-rw-r--r--nuttx/configs/skp16c26/ostest/ld.script41
1 files changed, 30 insertions, 11 deletions
diff --git a/nuttx/configs/skp16c26/ostest/ld.script b/nuttx/configs/skp16c26/ostest/ld.script
index 647492917..b9c0e4834 100644
--- a/nuttx/configs/skp16c26/ostest/ld.script
+++ b/nuttx/configs/skp16c26/ostest/ld.script
@@ -37,7 +37,7 @@ OUTPUT_ARCH(m32c)
ENTRY(_stext)
SECTIONS
{
- /* Flash memory begins at address 0xf0000 for the M20262F8 part and
+ /* "Far" flash memory begins at address 0xf0000 for the M20262F8 part and
* ends at address 0xfffff (all parts). The program entry point is
* the first address in flash
*/
@@ -55,9 +55,9 @@ SECTIONS
_etext = ABSOLUTE(.);
}
- _eronly = ABSOLUTE(.); /* End of read-only values */
- /* .data will be relocated from */
- /* this address */
+ _enronly = ABSOLUTE(.); /* End of read-only values */
+ /* .ndata will be relocated */
+ /* from this address */
/* The "variable" vector table will be fixed at the following address */
@@ -84,7 +84,7 @@ SECTIONS
_efixvect = ABSOLUTE(.);
}
- /* Internal RAM begins at address 0x00400 (all parts) and ends at
+ /* Internal "near" RAM begins at address 0x00400 (all parts) and ends at
* address 0x00bff (M20262F6 and M20262F8 parts). With the RAM
* region, used is .data followed by .bss. The remainder of RAM
* carved up by the start-up code into stacks and heaps.
@@ -92,19 +92,38 @@ SECTIONS
. = 0x00400;
- .data : {
- _sdata = ABSOLUTE(.);
+ .ndata : {
+ _sndata = ABSOLUTE(.);
*(.data)
CONSTRUCTORS
- _edata = ABSOLUTE(.);
+ _endata = ABSOLUTE(.);
}
- .bss : { /* BSS */
- _sbss = ABSOLUTE(.);
+ .nbss : { /* BSS */
+ _snbss = ABSOLUTE(.);
*(.bss)
*(COMMON)
- _ebss = ABSOLUTE(.);
+ _enbss = ABSOLUTE(.);
}
+
+ /* "Far" RAM begins at 0x10000. The SKP16C26 has no far RAM */
+/*
+ . = 0x10000;
+
+ .fdata : {
+ _sfdata = ABSOLUTE(.);
+ *(.data)
+ CONSTRUCTORS
+ _efdata = ABSOLUTE(.);
+ }
+
+ .fbss : { /* BSS */
+ _sfbss = ABSOLUTE(.);
+ *(.bss)
+ *(COMMON)
+ _efbss = ABSOLUTE(.);
+ }
+*/
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }