|
|
@@ -358,11 +358,18 @@ SECTIONS
|
|
|
__eh_frame_hdr_end = ABSOLUTE(.);
|
|
|
} > default_rodata_seg
|
|
|
|
|
|
+ /*
|
|
|
+ This section is a place where we dump all the rodata which aren't used at runtime,
|
|
|
+ so as to avoid binary size increase
|
|
|
+ */
|
|
|
.flash.rodata_noload (NOLOAD) :
|
|
|
{
|
|
|
+ /*
|
|
|
+ This is a symbol marking the flash.rodata end, this can be used for mmu driver to maintain virtual address
|
|
|
+ We don't need to include the noload rodata in this section
|
|
|
+ */
|
|
|
+ _rodata_reserved_end = ABSOLUTE(.);
|
|
|
. = ALIGN (4);
|
|
|
- /* Empty for now, only a container for `_rodata_reserved_end` symbol, add needed rodata noload mappings here if needed */
|
|
|
- _rodata_reserved_end = ABSOLUTE(.); /* This is a symbol marking the flash.rodata end, this can be used for mmu driver to maintain virtual address */
|
|
|
} > default_rodata_seg
|
|
|
|
|
|
/* Marks the end of IRAM code segment */
|