Split the UNTRUSTED_FLASH into the .untrusted_text and .untrusted_rodata sections for code and read-only data storage.
This commit is contained in:
+10
-4
@@ -70,12 +70,18 @@ MEMORY
|
|||||||
/* Define output sections */
|
/* Define output sections */
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
/* 指定不可信区域数据段存储 */
|
.untrusted_text : /* 不可信区域指令段 */
|
||||||
.untrusted_data :
|
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
*(.untrusted_data)
|
*(.untrusted_text)
|
||||||
*(.untrusted_data.*)
|
*(.untrusted_text.*)
|
||||||
|
} > UNTRUSTED_FLASH
|
||||||
|
|
||||||
|
.untrusted_rodata (READONLY): /* 不可信区域只读数据段 */
|
||||||
|
{
|
||||||
|
. = ALIGN(4);
|
||||||
|
*(.untrusted_rodata)
|
||||||
|
*(.untrusted_rodata.*)
|
||||||
} > UNTRUSTED_FLASH
|
} > UNTRUSTED_FLASH
|
||||||
|
|
||||||
/* The startup code goes first into FLASH */
|
/* The startup code goes first into FLASH */
|
||||||
|
|||||||
Reference in New Issue
Block a user