Add uninitialized section to linker script

Alessandro Angelino 2016-04-06 16:16:25 +01:00 committed by Milosch Meriac
parent ec980179bc
commit e32f969459
1 changed files with 13 additions and 0 deletions

View File

@ -186,6 +186,19 @@ SECTIONS
__uvisor_secure_end = .; __uvisor_secure_end = .;
} >FLASH } >FLASH
/* Uninitialized memory section
* The C/C++ library initialization will not touch this section. Data
* written here will keep its value on reboots (assuming no power loss). */
.uninitialized (NOLOAD):
{
. = ALIGN(32);
__uninitialized_start = .;
*(.uninitialized)
KEEP(*(.keep.uninitialized))
. = ALIGN(32);
__uninitialized_end = .;
} > RAM
.bss : .bss :
{ {
__bss_start__ = .; __bss_start__ = .;