mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
tests: Fix location of __edata section and comment original
This commit is contained in:
parent
890ceae4e5
commit
9b44cca4ce
@ -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 New Issue
Block a user