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 = .;
|
||||
} >ram_local2 AT >rom
|
||||
|
||||
_data_rom = LOADADDR (.data) + ORIGIN(rom);
|
||||
_edata_rom = _data_rom + SIZEOF (.data);
|
||||
|
||||
.bss : {
|
||||
_bss = .;
|
||||
*(.bss*) /* Read-write zero initialized data */
|
||||
|
@ -64,6 +64,9 @@ SECTIONS
|
||||
} >ram_local2
|
||||
|
||||
/* Running from RAM only, loading the .elf will initialize data for us. */
|
||||
_data_rom = .;
|
||||
_edata_rom = .;
|
||||
|
||||
_data = .;
|
||||
_edata = .;
|
||||
|
||||
|
@ -92,6 +92,9 @@ SECTIONS
|
||||
_edata = .;
|
||||
} >ram_local2 AT >rom
|
||||
|
||||
_data_rom = LOADADDR (.data) + ORIGIN(rom_flash);
|
||||
_edata_rom = _data_rom + SIZEOF (.data);
|
||||
|
||||
.bss : {
|
||||
. = _edata;
|
||||
_bss = .;
|
||||
|
Loading…
x
Reference in New Issue
Block a user