mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-08-22 02:14:13 -05:00
corrected itcm location
corrected linkscript for sbss
This commit is contained in:
@@ -8,10 +8,10 @@ MEMORY {
|
||||
iwram : ORIGIN = 0x037f8000, LENGTH = 32K
|
||||
ewram : ORIGIN = 0x02000000, LENGTH = 4M - 4k
|
||||
dtcm : ORIGIN = 0x00800000, LENGTH = 16K
|
||||
itcm : ORIGIN = 0x01000000, LENGTH = 32K
|
||||
itcm : ORIGIN = 0x00000000, LENGTH = 32K
|
||||
}
|
||||
|
||||
__itcm_start = 0x01000000;
|
||||
__itcm_start = 0x00000000;
|
||||
__iwram_start = 0x037f8000;
|
||||
__iwram_end = 0x03800000;
|
||||
__ewram_end = 0x02400000;
|
||||
@@ -110,20 +110,8 @@ SECTIONS
|
||||
. = ALIGN(4); /* REQUIRED. LD is flaky without it. */
|
||||
} >ewram = 0xff
|
||||
|
||||
.sbss ALIGN(4):
|
||||
{
|
||||
__sbss_start = ABSOLUTE(.);
|
||||
*(.sbss)
|
||||
. = ALIGN(4);
|
||||
}
|
||||
__sbss_end = . ;
|
||||
|
||||
_end = . ;
|
||||
__end__ = . ;
|
||||
PROVIDE (end = _end);
|
||||
|
||||
__iwram_lma = . ;
|
||||
|
||||
|
||||
.iwram __iwram_start : AT (__iwram_lma)
|
||||
{
|
||||
__iwram_start = ABSOLUTE(.) ;
|
||||
@@ -159,6 +147,7 @@ SECTIONS
|
||||
|
||||
__data_end = . ;
|
||||
|
||||
|
||||
.bss ALIGN(4) :
|
||||
{
|
||||
__bss_start = ABSOLUTE(.);
|
||||
@@ -183,8 +172,22 @@ SECTIONS
|
||||
} >itcm = 0xff
|
||||
__itcm_end = . ;
|
||||
|
||||
|
||||
__sbss_lma = __itcm_lma + SIZEOF(.itcm) ;
|
||||
__appended_data = __itcm_lma + SIZEOF(.itcm) ;
|
||||
|
||||
.sbss __sbss_lma : AT (__sbss_lma)
|
||||
{
|
||||
__sbss_start = ABSOLUTE(.);
|
||||
*(.sbss)
|
||||
. = ALIGN(4);
|
||||
}
|
||||
__sbss_end = . ;
|
||||
|
||||
_end = . ;
|
||||
__end__ = . ;
|
||||
PROVIDE (end = _end);
|
||||
|
||||
|
||||
|
||||
/* Stabs debugging sections. */
|
||||
|
||||
@@ -91,7 +91,7 @@ _start:
|
||||
@-------------------------------------------------------------------------
|
||||
@ Region 5 - ITCM
|
||||
@-------------------------------------------------------------------------
|
||||
ldr r0,=( PAGE_32K | 0x01000000 | 1)
|
||||
ldr r0,=( PAGE_32K | 0x00000000 | 1)
|
||||
mcr p15, 0, r0, c6, c5, 0
|
||||
|
||||
@-------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user