Tell the linker to assume a defualt fill value of 0xFF for the Flash.

This commit is contained in:
Mario Hüttel 2021-05-24 12:28:42 +02:00
parent 63fb9c4cde
commit fcf3d162b3

View File

@ -56,13 +56,13 @@ SECTIONS
KEEP(*(.init)) /* Constructors */ KEEP(*(.init)) /* Constructors */
KEEP(*(.fini)) /* Destructors */ KEEP(*(.fini)) /* Destructors */
. = ALIGN(4); . = ALIGN(4);
} >FLASH } >FLASH =0xFF
.ARM.extab : ALIGN(4) .ARM.extab : ALIGN(4)
{ {
*(.ARM.extab* .gnu.linkonce.armextab.*) *(.ARM.extab* .gnu.linkonce.armextab.*)
. = ALIGN(4); . = ALIGN(4);
} >FLASH } >FLASH =0xFF
.ARM : ALIGN(4) .ARM : ALIGN(4)
{ {
@ -70,7 +70,7 @@ SECTIONS
*(.ARM.exidx*) *(.ARM.exidx*)
__exidx_end = .; __exidx_end = .;
. = ALIGN(4); . = ALIGN(4);
} >FLASH } >FLASH =0xFF
/* Constructor/Destructor tables */ /* Constructor/Destructor tables */
.preinit_array : ALIGN(4) .preinit_array : ALIGN(4)
@ -79,7 +79,7 @@ SECTIONS
KEEP (*(.preinit_array*)) KEEP (*(.preinit_array*))
PROVIDE_HIDDEN (__preinit_array_end = .); PROVIDE_HIDDEN (__preinit_array_end = .);
. = ALIGN(4); . = ALIGN(4);
} >FLASH } >FLASH =0xFF
.init_array : ALIGN(4) .init_array : ALIGN(4)
{ {
@ -88,7 +88,7 @@ SECTIONS
KEEP (*(.init_array*)) KEEP (*(.init_array*))
PROVIDE_HIDDEN (__init_array_end = .); PROVIDE_HIDDEN (__init_array_end = .);
. = ALIGN(4); . = ALIGN(4);
} >FLASH } >FLASH =0xFF
.fini_array : ALIGN(4) .fini_array : ALIGN(4)
{ {
@ -97,7 +97,7 @@ SECTIONS
KEEP (*(SORT(.fini_array.*))) KEEP (*(SORT(.fini_array.*)))
PROVIDE_HIDDEN (__fini_array_end = .); PROVIDE_HIDDEN (__fini_array_end = .);
. = ALIGN(4); . = ALIGN(4);
} >FLASH } >FLASH =0xFF
/* Initialized Data */ /* Initialized Data */
__ld_load_data = LOADADDR(.data); __ld_load_data = LOADADDR(.data);