mirror of https://github.com/ARMmbed/mbed-os.git
Add uninitialized section to linker script
parent
ec980179bc
commit
e32f969459
|
@ -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__ = .;
|
||||||
|
|
Loading…
Reference in New Issue