comparison Common/CPU1-F429.ld @ 569:3508e6dc4f22

Added new section "lower.font": To avoid section overlap caused by the memory needs of the new characters, a new section has been introduced to store the font data behind the code and data sections. The handling is a little bit overengineered but was used to have the same look as the upper section, where a defined structure had to be rebuild to match the output of another compiler. moving the lower section behind the upper would save firmware space but result in the need of a new fontlib version.
author Ideenmodellierer
date Mon, 30 Nov 2020 20:52:49 +0100
parents 27c56f1b1856
children 01f40cb1057e
comparison
equal deleted inserted replaced
568:1eee6fb108cb 569:3508e6dc4f22
206 } > ROM 206 } > ROM
207 207
208 /* Define Known Address for Each Font */ 208 /* Define Known Address for Each Font */
209 /* Flash Sector 23 is protected (bootloader font + image) => use end of sector 22 */ 209 /* Flash Sector 23 is protected (bootloader font + image) => use end of sector 22 */
210 210
211 211 .lower_fonts 0x080A0000 : {
212 *(.lower_fonts.image_data_*)
213
214 *(.lower_fonts.*)
215 } > ROM
216
217 .lower_directory : {
218 *(.lower_font_directory*)
219 } > ROM
212 220
213 /* TODO: the linker does not seem to work as the one of used for initial bootloader ==> Reconstruct layout to keep it compatible with the first version */ 221 /* TODO: the linker does not seem to work as the one of used for initial bootloader ==> Reconstruct layout to keep it compatible with the first version */
214 /* TODO: cleanup during next iteration */ 222 /* TODO: cleanup during next iteration */
215 223
216 /* Put fonts and images in UPPER region */ 224 /* Put fonts and images in UPPER region */