Tell the linker to assume a defualt fill value of 0xFF for the Flash.
This commit is contained in:
parent
63fb9c4cde
commit
fcf3d162b3
@ -56,13 +56,13 @@ SECTIONS
|
||||
KEEP(*(.init)) /* Constructors */
|
||||
KEEP(*(.fini)) /* Destructors */
|
||||
. = ALIGN(4);
|
||||
} >FLASH
|
||||
} >FLASH =0xFF
|
||||
|
||||
.ARM.extab : ALIGN(4)
|
||||
{
|
||||
*(.ARM.extab* .gnu.linkonce.armextab.*)
|
||||
. = ALIGN(4);
|
||||
} >FLASH
|
||||
} >FLASH =0xFF
|
||||
|
||||
.ARM : ALIGN(4)
|
||||
{
|
||||
@ -70,7 +70,7 @@ SECTIONS
|
||||
*(.ARM.exidx*)
|
||||
__exidx_end = .;
|
||||
. = ALIGN(4);
|
||||
} >FLASH
|
||||
} >FLASH =0xFF
|
||||
|
||||
/* Constructor/Destructor tables */
|
||||
.preinit_array : ALIGN(4)
|
||||
@ -79,7 +79,7 @@ SECTIONS
|
||||
KEEP (*(.preinit_array*))
|
||||
PROVIDE_HIDDEN (__preinit_array_end = .);
|
||||
. = ALIGN(4);
|
||||
} >FLASH
|
||||
} >FLASH =0xFF
|
||||
|
||||
.init_array : ALIGN(4)
|
||||
{
|
||||
@ -88,7 +88,7 @@ SECTIONS
|
||||
KEEP (*(.init_array*))
|
||||
PROVIDE_HIDDEN (__init_array_end = .);
|
||||
. = ALIGN(4);
|
||||
} >FLASH
|
||||
} >FLASH =0xFF
|
||||
|
||||
.fini_array : ALIGN(4)
|
||||
{
|
||||
@ -97,7 +97,7 @@ SECTIONS
|
||||
KEEP (*(SORT(.fini_array.*)))
|
||||
PROVIDE_HIDDEN (__fini_array_end = .);
|
||||
. = ALIGN(4);
|
||||
} >FLASH
|
||||
} >FLASH =0xFF
|
||||
|
||||
/* Initialized Data */
|
||||
__ld_load_data = LOADADDR(.data);
|
||||
|
Loading…
Reference in New Issue
Block a user