diff options
author | thomas-coding <80162057+thomas-coding@users.noreply.github.com> | 2021-06-29 05:19:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-28 14:19:26 -0700 |
commit | e66c4a93ee545bb9f8dd85abef9b396a22c07416 (patch) | |
tree | 9eb1e84895d3a5ba2a3289636bb3adcc1126fbd1 | |
parent | ac5bf3b934c9f18f29097d15a27fb49524e51118 (diff) | |
download | freertos-git-e66c4a93ee545bb9f8dd85abef9b396a22c07416.tar.gz |
Fix data copy address error (#632)
* Fix data copy address error
Co-authored-by: Jinping Wu <jinping.wu@verisilicon.com>
-rw-r--r-- | FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/scripts/mps2_m3.ld | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/scripts/mps2_m3.ld b/FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/scripts/mps2_m3.ld index 40399699b..74b0acc36 100644 --- a/FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/scripts/mps2_m3.ld +++ b/FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/scripts/mps2_m3.ld @@ -56,24 +56,23 @@ SECTIONS *(.rodata*) . = ALIGN(4); _etext = .; - _sidata = _etext; } > FLASH - .ARM.extab : - { - . = ALIGN(4); - *(.ARM.extab* .gnu.linkonce.armextab.*) - . = ALIGN(4); - } >FLASH + .ARM.extab : + { + . = ALIGN(4); + *(.ARM.extab* .gnu.linkonce.armextab.*) + . = ALIGN(4); + } >FLASH - .ARM : - { - . = ALIGN(4); - __exidx_start = .; - *(.ARM.exidx* .gnu.linkonce.armexidx.*) - __exidx_end = .; - . = ALIGN(4); - } >FLASH + .ARM : + { + . = ALIGN(4); + __exidx_start = .; + *(.ARM.exidx* .gnu.linkonce.armexidx.*) + __exidx_end = .; + . = ALIGN(4); + } >FLASH .interrupts_ram : { @@ -83,9 +82,10 @@ SECTIONS . += M_VECTOR_RAM_SIZE; . = ALIGN(4); __interrupts_ram_end = .; - } > RAM - + + _sidata = LOADADDR(.data); + .data : /* AT ( _sidata ) */ { . = ALIGN(4); |