mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Correct several m9s12x link issues
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3319 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -39,16 +39,20 @@
|
|||||||
|
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
/* The 8Kb SRAM is mapped to 0x2000-0x2fff. The top 256 bytes are reserved
|
/* The register space resides at address 0x0000-0x03ff. The following
|
||||||
* for the serial monitor stack space.
|
* address, 0x0400-0x1fff are unused.
|
||||||
|
*
|
||||||
|
* The 8Kb SRAM is mapped to 0x2000-0x2fff.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
sram (rwx) : ORIGIN = 0x2000, LENGTH = 8K-256
|
sram (rwx) : ORIGIN = 0x2000, LENGTH = 8K
|
||||||
|
|
||||||
/* Two fixed text flash pages (corresponding to page 3e and 3f) */
|
/* Two fixed text flash pages (corresponding to page 3e and 3f). The
|
||||||
|
* top 256 bytes of page 3f is reserved to hold the interrupt vectors
|
||||||
|
*/
|
||||||
|
|
||||||
lowtext(rx) : ORIGIN = 0x4000, LENGTH = 16K /* Page 3e */
|
lowtext(rx) : ORIGIN = 0x4000, LENGTH = 16K /* Page 3e */
|
||||||
hitext (rx) : ORIGIN = 0xc000, LENGTH = 16K-2k /* Page 3f */
|
hitext (rx) : ORIGIN = 0xc000, LENGTH = 16K-256 /* Page 3f */
|
||||||
|
|
||||||
/* Flash memory pages:
|
/* Flash memory pages:
|
||||||
*
|
*
|
||||||
@@ -79,9 +83,9 @@ MEMORY
|
|||||||
page3e (rx) : ORIGIN = 0x0f8000, LENGTH = 16K /* Page 3e */
|
page3e (rx) : ORIGIN = 0x0f8000, LENGTH = 16K /* Page 3e */
|
||||||
page3f (rx) : ORIGIN = 0x0fc000, LENGTH = 16K-2K /* Page 3f */
|
page3f (rx) : ORIGIN = 0x0fc000, LENGTH = 16K-2K /* Page 3f */
|
||||||
|
|
||||||
/* Vectors. These get relocated to 0xf780-f7ff by the serial loader */
|
/* Vectors */
|
||||||
|
|
||||||
vectors (rx) : ORIGIN = 0xff80, LENGTH = 256
|
vectors (rx) : ORIGIN = 0xff80, LENGTH = 256
|
||||||
}
|
}
|
||||||
|
|
||||||
ENTRY(_stext)
|
ENTRY(_stext)
|
||||||
@@ -89,7 +93,7 @@ SECTIONS
|
|||||||
{
|
{
|
||||||
.text : {
|
.text : {
|
||||||
_stext = ABSOLUTE(.);
|
_stext = ABSOLUTE(.);
|
||||||
*(.vectors)
|
*(nonbanked)
|
||||||
*(.text .text.*)
|
*(.text .text.*)
|
||||||
*(.fixup)
|
*(.fixup)
|
||||||
*(.gnu.warning)
|
*(.gnu.warning)
|
||||||
@@ -113,6 +117,10 @@ SECTIONS
|
|||||||
_edata = ABSOLUTE(.);
|
_edata = ABSOLUTE(.);
|
||||||
} > sram AT > lowtext
|
} > sram AT > lowtext
|
||||||
|
|
||||||
|
.vectors : {
|
||||||
|
*(vectors)
|
||||||
|
} > vectors
|
||||||
|
|
||||||
.bss : { /* BSS */
|
.bss : { /* BSS */
|
||||||
_sbss = ABSOLUTE(.);
|
_sbss = ABSOLUTE(.);
|
||||||
*(.bss .bss.*)
|
*(.bss .bss.*)
|
||||||
|
|||||||
@@ -39,20 +39,22 @@
|
|||||||
|
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
/* The 8Kb SRAM is mapped to 0x2000-0x2fff. The top 256 bytes are reserved
|
/* The register space resides at address 0x0000-0x03ff. The following
|
||||||
* for the serial monitor stack space.
|
* address, 0x0400-0x1fff are unused.
|
||||||
|
*
|
||||||
|
* The 8Kb SRAM is mapped to 0x2000-0x2fff.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
sram (rwx) : ORIGIN = 0x2000, LENGTH = 8K-256
|
sram (rwx) : ORIGIN = 0x2000, LENGTH = 8K
|
||||||
|
|
||||||
/* Three fixed text flash pages (corresponding to page 3e, 3d, and 3f) at
|
/* Three fixed text flash pages (corresponding to page 3e, 3d, and 3f) at
|
||||||
* 16Kb each (minus 2Kb at the end of page 3f that is reserved at the top for
|
* 16Kb each (minus 256 bytes at the end of page 3f that is reserved for
|
||||||
* the serial boot loader
|
* interrupt vectors).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
text (rx) : ORIGIN = 0x4000, LENGTH = 48K-2k /* Page 3e, 3d, and 3f */
|
text (rx) : ORIGIN = 0x4000, LENGTH = 48K-256 /* Page 3e, 3d, and 3f */
|
||||||
|
|
||||||
/* Vectors. These get relocated to 0xf780-f7ff by the serial loader */
|
/* Vectors */
|
||||||
|
|
||||||
vectors (rx) : ORIGIN = 0xff80, LENGTH = 256
|
vectors (rx) : ORIGIN = 0xff80, LENGTH = 256
|
||||||
}
|
}
|
||||||
@@ -62,7 +64,7 @@ SECTIONS
|
|||||||
{
|
{
|
||||||
.text : {
|
.text : {
|
||||||
_stext = ABSOLUTE(.);
|
_stext = ABSOLUTE(.);
|
||||||
*(.vectors)
|
*(nonbanked)
|
||||||
*(.text .text.*)
|
*(.text .text.*)
|
||||||
*(.fixup)
|
*(.fixup)
|
||||||
*(.gnu.warning)
|
*(.gnu.warning)
|
||||||
@@ -86,6 +88,10 @@ SECTIONS
|
|||||||
_edata = ABSOLUTE(.);
|
_edata = ABSOLUTE(.);
|
||||||
} > sram AT > text
|
} > sram AT > text
|
||||||
|
|
||||||
|
.vectors : {
|
||||||
|
*(vectors)
|
||||||
|
} > vectors
|
||||||
|
|
||||||
.bss : { /* BSS */
|
.bss : { /* BSS */
|
||||||
_sbss = ABSOLUTE(.);
|
_sbss = ABSOLUTE(.);
|
||||||
*(.bss .bss.*)
|
*(.bss .bss.*)
|
||||||
|
|||||||
Reference in New Issue
Block a user