Split the UNTRUSTED_FLASH into the .untrusted_text and .untrusted_rodata sections for code and read-only data storage.

This commit is contained in:
2026-09-14 15:56:05 +08:00
parent 1f6822dcbe
commit 2b73c30a9d
+10 -4
View File
@@ -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 */