comparison gcc/ld-script.src @ 97:80e3a78126ac

gcc/ld-script.src: .bss_dar moved to the beginning of XRAM
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 21 Jul 2018 02:10:28 +0000
parents 32bcc299ef55
children 16703b3fb211
comparison
equal deleted inserted replaced
96:85a26478b7de 97:80e3a78126ac
77 /* all .rodata will stay in flash */ 77 /* all .rodata will stay in flash */
78 .rodata : { 78 .rodata : {
79 *(.rodata*) 79 *(.rodata*)
80 } > Buildmem 80 } > Buildmem
81 81
82 .bss_dar (NOLOAD) : {
83 *dar_gbl_var.a:(.bss* COMMON)
84 } > XRAM
85
82 /* 86 /*
83 * All .data will go into XRAM. 87 * All .data will go into XRAM.
84 * For the flash build we'll have a step that copies 88 * For the flash build we'll have a step that copies
85 * the .data section from flash to XRAM; for the RAM-only 89 * the .data section from flash to XRAM; for the RAM-only
86 * build it goes directly into XRAM and stays there. 90 * build it goes directly into XRAM and stays there.
91 ifelse(Buildmem,FLASH, 95 ifelse(Buildmem,FLASH,
92 ` __initdata_ram_addr = ADDR(.data); 96 ` __initdata_ram_addr = ADDR(.data);
93 __initdata_flash_addr = LOADADDR(.data); 97 __initdata_flash_addr = LOADADDR(.data);
94 __initdata_size = SIZEOF(.data); 98 __initdata_size = SIZEOF(.data);
95 ')dnl 99 ')dnl
96
97 .bss_dar (NOLOAD) : {
98 *dar_gbl_var.a:(.bss* COMMON)
99 } > XRAM
100 100
101 /* we have two kinds of BSS: internal and external */ 101 /* we have two kinds of BSS: internal and external */
102 int.bss (NOLOAD) : { 102 int.bss (NOLOAD) : {
103 *(.l1s_global) 103 *(.l1s_global)
104 *_ir.a:(.bss* COMMON) 104 *_ir.a:(.bss* COMMON)