tests: Fix location of __edata section and comment original
This commit is contained in:
parent
890ceae4e5
commit
9b44cca4ce
1 changed files with 4 additions and 0 deletions
|
@ -133,14 +133,18 @@ SECTIONS
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
__sdata = .;
|
__sdata = .;
|
||||||
|
__edata = .; /* RAM: By setting __sdata=__edata cortex-m-rt has to copy 0 bytes as .data is already in RAM */
|
||||||
|
|
||||||
*(.data .data.*);
|
*(.data .data.*);
|
||||||
. = ALIGN(4); /* 4-byte align the end (VMA) of this section */
|
. = ALIGN(4); /* 4-byte align the end (VMA) of this section */
|
||||||
} > RAM
|
} > RAM
|
||||||
/* Allow sections from user `memory.x` injected using `INSERT AFTER .data` to
|
/* Allow sections from user `memory.x` injected using `INSERT AFTER .data` to
|
||||||
* use the .data loading mechanism by pushing __edata. Note: do not change
|
* use the .data loading mechanism by pushing __edata. Note: do not change
|
||||||
* output region or load region in those user sections! */
|
* output region or load region in those user sections! */
|
||||||
|
/* Link from RAM: Disabled, now __sdata == __edata
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
__edata = .;
|
__edata = .;
|
||||||
|
*/
|
||||||
|
|
||||||
/* LMA of .data */
|
/* LMA of .data */
|
||||||
__sidata = LOADADDR(.data);
|
__sidata = LOADADDR(.data);
|
||||||
|
|
Loading…
Reference in a new issue