diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-01-05 13:30:08 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-01-05 13:30:08 +0100 |
| commit | 58e9dfbc00c0fed1400ecf8c3827f476a25b7c11 (patch) | |
| tree | 33da8b4debf2a4cdadd43a9d54d92b11ddf50a39 /tests | |
| parent | 3486d59d730ac6124290ced600c00c61133c0fdb (diff) | |
tests/stm32: make __sdata=__edata so that cortex-m-rt doesn't try to copy it from "flash".
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/stm32/link_ram.x | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/stm32/link_ram.x b/tests/stm32/link_ram.x index d23ffc747..26da86baa 100644 --- a/tests/stm32/link_ram.x +++ b/tests/stm32/link_ram.x | |||
| @@ -125,6 +125,7 @@ SECTIONS | |||
| 125 | { | 125 | { |
| 126 | . = ALIGN(4); | 126 | . = ALIGN(4); |
| 127 | __sdata = .; | 127 | __sdata = .; |
| 128 | __edata = .; | ||
| 128 | *(.data .data.*); | 129 | *(.data .data.*); |
| 129 | . = ALIGN(4); /* 4-byte align the end (VMA) of this section */ | 130 | . = ALIGN(4); /* 4-byte align the end (VMA) of this section */ |
| 130 | } > RAM | 131 | } > RAM |
| @@ -132,7 +133,6 @@ SECTIONS | |||
| 132 | * use the .data loading mechanism by pushing __edata. Note: do not change | 133 | * use the .data loading mechanism by pushing __edata. Note: do not change |
| 133 | * output region or load region in those user sections! */ | 134 | * output region or load region in those user sections! */ |
| 134 | . = ALIGN(4); | 135 | . = ALIGN(4); |
| 135 | __edata = .; | ||
| 136 | 136 | ||
| 137 | /* LMA of .data */ | 137 | /* LMA of .data */ |
| 138 | __sidata = LOADADDR(.data); | 138 | __sidata = LOADADDR(.data); |
