Added _data_rom / _edata_rom for ld ram only and standard spifi ld Fixed ROM to RAM copy of ".data"
This commit is contained in:
parent
f4e45e74bc
commit
edab264704
@ -93,6 +93,9 @@ SECTIONS
|
|||||||
_edata = .;
|
_edata = .;
|
||||||
} >ram_local2 AT >rom
|
} >ram_local2 AT >rom
|
||||||
|
|
||||||
|
_data_rom = LOADADDR (.data) + ORIGIN(rom);
|
||||||
|
_edata_rom = _data_rom + SIZEOF (.data);
|
||||||
|
|
||||||
.bss : {
|
.bss : {
|
||||||
_bss = .;
|
_bss = .;
|
||||||
*(.bss*) /* Read-write zero initialized data */
|
*(.bss*) /* Read-write zero initialized data */
|
||||||
|
@ -64,6 +64,9 @@ SECTIONS
|
|||||||
} >ram_local2
|
} >ram_local2
|
||||||
|
|
||||||
/* Running from RAM only, loading the .elf will initialize data for us. */
|
/* Running from RAM only, loading the .elf will initialize data for us. */
|
||||||
|
_data_rom = .;
|
||||||
|
_edata_rom = .;
|
||||||
|
|
||||||
_data = .;
|
_data = .;
|
||||||
_edata = .;
|
_edata = .;
|
||||||
|
|
||||||
|
@ -92,6 +92,9 @@ SECTIONS
|
|||||||
_edata = .;
|
_edata = .;
|
||||||
} >ram_local2 AT >rom
|
} >ram_local2 AT >rom
|
||||||
|
|
||||||
|
_data_rom = LOADADDR (.data) + ORIGIN(rom_flash);
|
||||||
|
_edata_rom = _data_rom + SIZEOF (.data);
|
||||||
|
|
||||||
.bss : {
|
.bss : {
|
||||||
. = _edata;
|
. = _edata;
|
||||||
_bss = .;
|
_bss = .;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user