File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ MEMORY {
1010 /* PRG-ROM LMA. 256 Kib. */
1111 prg_rom : ORIGIN = 0x10000 , LENGTH = 0x40000
1212
13- /* PRG-ROM Bank 15 LMA; accessible at startup. */
13+ /* PRG-ROM Bank 15 LMA; accessible at startup at VMA prg_rom_hi . */
1414 prg_rom_15 (rx) : ORIGIN = 0x4c000 , LENGTH = 0x4000
1515
1616 /* CHR-ROM LMA. 128 Kib. */
@@ -24,7 +24,8 @@ SECTIONS {
2424 .rodata : { INCLUDE rodata-sections.ld } >prg_rom_hi AT>prg_rom_15
2525 /* The data segment is loaded from PRG-ROM page 15, but used in RAM. */
2626 .data : { INCLUDE data-sections.ld } AT>prg_rom_15
27- INCLUDE data-symbols.ld
27+ __data_load_start = LOADADDR (.data ) - ORIGIN (prg_rom_15) + ORIGIN (prg_rom_hi);
28+ __data_size = SIZEOF (.data );
2829 INCLUDE bss.ld
2930 INCLUDE noinit.ld
3031
You can’t perform that action at this time.
0 commit comments