Skip to content

Commit 787e04c

Browse files
committed
.noinit section added to linker scripts
1 parent 2251bf0 commit 787e04c

File tree

1 file changed

+13
-2
lines changed
  • ilg.gnuarmeclipse.templates.stm/templates/ldscripts

1 file changed

+13
-2
lines changed

ilg.gnuarmeclipse.templates.stm/templates/ldscripts/sections.ld

+13-2
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,19 @@ SECTIONS
229229
_ebss = . ; /* STM specific definition */
230230
} >RAM
231231

232-
PROVIDE ( end = _ebss );
233-
PROVIDE ( _end = _ebss );
232+
.noinit (NOLOAD):
233+
{
234+
. = ALIGN(4);
235+
_noinit = .;
236+
237+
*(.noinit .noinit.*)
238+
239+
. = ALIGN(4) ;
240+
_end_noinit = .;
241+
} > RAM
242+
243+
PROVIDE ( end = _end_noinit ); /* was _ebss */
244+
PROVIDE ( _end = end );
234245

235246
/*
236247
* The user stack section.

0 commit comments

Comments
 (0)