mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
risc-v/mpfs: Mark the page table section as NOLOAD
Otherwise the linker will allocate an output section for it, which actually uses kernel ROM memory for nothing
This commit is contained in:
@@ -90,7 +90,7 @@ SECTIONS
|
|||||||
} > ksram
|
} > ksram
|
||||||
|
|
||||||
/* Page tables here, align to 4K boundary */
|
/* Page tables here, align to 4K boundary */
|
||||||
.pgtables : ALIGN(0x1000) {
|
.pgtables (NOLOAD) : ALIGN(0x1000) {
|
||||||
*(.pgtables)
|
*(.pgtables)
|
||||||
. = ALIGN(32);
|
. = ALIGN(32);
|
||||||
_ebss = ABSOLUTE(.);
|
_ebss = ABSOLUTE(.);
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ SECTIONS
|
|||||||
|
|
||||||
/* Page tables here, align to 4K boundary */
|
/* Page tables here, align to 4K boundary */
|
||||||
|
|
||||||
.pgtables : ALIGN(0x1000) {
|
.pgtables (NOLOAD) : ALIGN(0x1000) {
|
||||||
*(.pgtables)
|
*(.pgtables)
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} > ksram
|
} > ksram
|
||||||
|
|||||||
Reference in New Issue
Block a user