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:
TitanMKD 2012-11-10 00:25:29 +01:00 committed by Piotr Esden-Tempski
parent f4e45e74bc
commit edab264704
3 changed files with 9 additions and 0 deletions

View File

@ -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 */

View File

@ -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 = .;

View File

@ -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 = .;