Fix data copy address error (#632)

* Fix data copy address error

Co-authored-by: Jinping Wu <jinping.wu@verisilicon.com>
pull/633/head^2
thomas-coding 4 years ago committed by GitHub
parent ac5bf3b934
commit e66c4a93ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -56,24 +56,23 @@ SECTIONS
*(.rodata*) *(.rodata*)
. = ALIGN(4); . = ALIGN(4);
_etext = .; _etext = .;
_sidata = _etext;
} > FLASH } > FLASH
.ARM.extab : .ARM.extab :
{ {
. = ALIGN(4); . = ALIGN(4);
*(.ARM.extab* .gnu.linkonce.armextab.*) *(.ARM.extab* .gnu.linkonce.armextab.*)
. = ALIGN(4); . = ALIGN(4);
} >FLASH } >FLASH
.ARM : .ARM :
{ {
. = ALIGN(4); . = ALIGN(4);
__exidx_start = .; __exidx_start = .;
*(.ARM.exidx* .gnu.linkonce.armexidx.*) *(.ARM.exidx* .gnu.linkonce.armexidx.*)
__exidx_end = .; __exidx_end = .;
. = ALIGN(4); . = ALIGN(4);
} >FLASH } >FLASH
.interrupts_ram : .interrupts_ram :
{ {
@ -83,9 +82,10 @@ SECTIONS
. += M_VECTOR_RAM_SIZE; . += M_VECTOR_RAM_SIZE;
. = ALIGN(4); . = ALIGN(4);
__interrupts_ram_end = .; __interrupts_ram_end = .;
} > RAM } > RAM
_sidata = LOADADDR(.data);
.data : /* AT ( _sidata ) */ .data : /* AT ( _sidata ) */
{ {
. = ALIGN(4); . = ALIGN(4);

Loading…
Cancel
Save