format link scripts

This commit is contained in:
Meco Man
2023-01-08 21:16:47 -05:00
committed by Man, Jianting (Meco)
parent 9bc68d26a4
commit 592284c66c
869 changed files with 24161 additions and 23968 deletions

View File

@@ -38,7 +38,7 @@ SECTIONS
*(.rodata*)
KEEP(*(.eh_frame*))
/* section information for finsh shell */
/* section information for finsh shell */
. = ALIGN(4);
__fsymtab_start = .;
KEEP(*(FSymTab))
@@ -121,7 +121,7 @@ SECTIONS
. = ALIGN(4);
__bss_end__ = .;
} > RAM
.heap (COPY):
{
__HeapBase = .;
@@ -147,13 +147,13 @@ SECTIONS
/* Check if data + heap + stack exceeds RAM limit */
ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
/* Check if text sections + data exceeds FLASH limit */
DataInitFlashUsed = __bss_start__ - __data_start__;
CodeFlashUsed = __etext - ORIGIN(FLASH);
TotalFlashUsed = CodeFlashUsed + DataInitFlashUsed;
ASSERT(TotalFlashUsed <= LENGTH(FLASH), "region FLASH overflowed with .data and user data")
}