summaryrefslogtreecommitdiff
path: root/nuttx/configs/skp16c26/ostest/ld.script
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-02-08 20:30:10 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-02-08 20:30:10 +0000
commit489cb13e329429d85b919eaf5fa2c80734eee18a (patch)
treec276126dc0d959e7d98d9baf7fa39e0e1c62b050 /nuttx/configs/skp16c26/ostest/ld.script
parentae87859dba09246ac004b98999254ad7dafec620 (diff)
downloadpx4-nuttx-489cb13e329429d85b919eaf5fa2c80734eee18a.tar.gz
px4-nuttx-489cb13e329429d85b919eaf5fa2c80734eee18a.tar.bz2
px4-nuttx-489cb13e329429d85b919eaf5fa2c80734eee18a.zip
Add M16C info
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1483 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/skp16c26/ostest/ld.script')
-rw-r--r--nuttx/configs/skp16c26/ostest/ld.script45
1 files changed, 41 insertions, 4 deletions
diff --git a/nuttx/configs/skp16c26/ostest/ld.script b/nuttx/configs/skp16c26/ostest/ld.script
index 63cfeccdb..647492917 100644
--- a/nuttx/configs/skp16c26/ostest/ld.script
+++ b/nuttx/configs/skp16c26/ostest/ld.script
@@ -37,9 +37,12 @@ OUTPUT_ARCH(m32c)
ENTRY(_stext)
SECTIONS
{
- /* The OS entry point is here */
+ /* 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
+ */
- . = 0x00008000;
+ . = 0xf0000;
.text : {
_stext = ABSOLUTE(.);
*(.text)
@@ -52,8 +55,42 @@ SECTIONS
_etext = ABSOLUTE(.);
}
- _eronly = ABSOLUTE(.); /* See below */
- . = ALIGN(4096);
+ _eronly = ABSOLUTE(.); /* End of read-only values */
+ /* .data will be relocated from */
+ /* this address */
+
+ /* The "variable" vector table will be fixed at the following address */
+
+ . = 0xffd00
+ .varvect : {
+ _svarvect = ABSOLUTE(.);
+ *(.varvect)
+ _evarvect = ABSOLUTE(.);
+ }
+
+ /* Followed by the special page/fixed vector table. */
+
+ . = 0xffe00
+ .specpg : {
+ _sspecpg = ABSOLUTE(.);
+ *(.specpg)
+ _especpg = ABSOLUTE(.);
+ }
+
+ . = 0xfffdc
+ .fixvect : {
+ _sfixvect = ABSOLUTE(.);
+ *(.fixvect)
+ _efixvect = ABSOLUTE(.);
+ }
+
+ /* Internal 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.
+ */
+
+ . = 0x00400;
.data : {
_sdata = ABSOLUTE(.);