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 */
|
||||
SECTIONS
|
||||
{
|
||||
/* 指定不可信区域数据段存储 */
|
||||
.untrusted_data :
|
||||
.untrusted_text : /* 不可信区域指令段 */
|
||||
{
|
||||
. = ALIGN(4);
|
||||
*(.untrusted_data)
|
||||
*(.untrusted_data.*)
|
||||
*(.untrusted_text)
|
||||
*(.untrusted_text.*)
|
||||
} > UNTRUSTED_FLASH
|
||||
|
||||
.untrusted_rodata (READONLY): /* 不可信区域只读数据段 */
|
||||
{
|
||||
. = ALIGN(4);
|
||||
*(.untrusted_rodata)
|
||||
*(.untrusted_rodata.*)
|
||||
} > UNTRUSTED_FLASH
|
||||
|
||||
/* The startup code goes first into FLASH */
|
||||
|
||||
Reference in New Issue
Block a user