comparison Common/CPU1-F429.ld @ 123:a984d87a1ec0 FlipDisplay

Added option to build FontPack as static libary which is linked to the Firmware project (to allow separate build settings)
author Ideenmodellierer
date Sun, 27 Jan 2019 22:01:07 +0100
parents 06cfc7457c9e
children 27c56f1b1856
comparison
equal deleted inserted replaced
122:871baf20776b 123:a984d87a1ec0
122 *(.text) /* .text sections (code) */ 122 *(.text) /* .text sections (code) */
123 *(.text*) /* .text* sections (code) */ 123 *(.text*) /* .text* sections (code) */
124 *(.glue_7) /* glue arm to thumb code */ 124 *(.glue_7) /* glue arm to thumb code */
125 *(.glue_7t) /* glue thumb to arm code */ 125 *(.glue_7t) /* glue thumb to arm code */
126 *(.eh_frame) 126 *(.eh_frame)
127
128 . = ALIGN(4); 127 . = ALIGN(4);
129 _etext = .; /* define a global symbols at end of code */ 128 _etext = .; /* define a global symbols at end of code */
130 } >ROM 129 } >ROM
131 130
132 131
193 .bootloader_firmware_data 0x0800A000 : { 192 .bootloader_firmware_data 0x0800A000 : {
194 PROVIDE( bootloader_FirmwareData = . ); 193 PROVIDE( bootloader_FirmwareData = . );
195 KEEP( *(.bootloader_firmware_data) ) 194 KEEP( *(.bootloader_firmware_data) )
196 } > ROM 195 } > ROM
197 196
198
199 .upper_font_dir 0x081DEF00 : { /* Flash Sector 23 is protected (bootloader font + image) => use end of sector 22 */
200
201 /* Define Known Address for Each Font */ 197 /* Define Known Address for Each Font */
202 __font_directory = .; 198 /* Flash Sector 23 is protected (bootloader font + image) => use end of sector 22 */
203 199
204
205 *(.upper_font_directory.Awe48)
206 *(.upper_font_directory.FontT24)
207 *(.upper_font_directory.FontT42)
208 *(.upper_font_directory.FontT48)
209 *(.upper_font_directory.FontT54)
210 *(.upper_font_directory.FontT84)
211 *(.upper_font_directory.FontT105)
212 *(.upper_font_directory.FontT144)
213 *(.upper_font_directory.Batt24*)
214
215 __font_directory_end = .;
216 LONG( -1 ); /* Magic End Marker */
217
218 /* and for Each Image */
219 /* __image_directory = .; */
220 /* PROVIDE( ImgHWcolor = __image_directory + 0 * 8 );
221 PROVIDE( ImgOSTC = __image_directory + 1 * 8 ); */
222 /* __image_directory_end = __image_directory + 2 * 8; */
223
224 /* KEEP( *(.upper_image_directory) ) */
225
226 /* FIXME: shall KEEP images here */
227 LONG( -1 ); /* Magic End Marker */
228
229 /* and for CLUT */
230 /* PROVIDE( indexHWcolor = . ); */
231 . += 0x100;
232 LONG( -1 ); /* Magic End Marker */
233 } >UPPER
234
235
236
237
238 /* Put fonts and images in UPPER region */
239 /*
240 .upper_images : {
241 __upper_image_data = .;
242 KEEP( *(.newupper_images) )
243 __upper_image_data_end = .;
244 } > UPPER
245 */
246 200
247 201
248 /* 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 */ 202 /* 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 */
249 /* TODO: cleanup during next iteration */ 203 /* TODO: cleanup during next iteration */
250 204
514 *(.upper_fonts.image_data_FontT48_*) 468 *(.upper_fonts.image_data_FontT48_*)
515 *(.upper_fonts.image_data_awe48_*) 469 *(.upper_fonts.image_data_awe48_*)
516 470
517 /* moving of fonts from lower to upper */ 471 /* moving of fonts from lower to upper */
518 472
519 *(.upper_fonts*) 473 *(.upper_fonts.*)
520 474
521 __upper_font_data_end = .; 475 __upper_font_data_end = .;
522 } >UPPER 476 } >UPPER
523 477
524 478
525 479
526 480 .upper_directory 0x081DEF00 : {
481 __font_directory = .;
482 *(.upper_font_directory.Awe48)
483 *(.upper_font_directory.FontT24)
484 *(.upper_font_directory.FontT42)
485 *(.upper_font_directory.FontT48)
486 *(.upper_font_directory.FontT54)
487 *(.upper_font_directory.FontT84)
488 *(.upper_font_directory.FontT105)
489 *(.upper_font_directory.FontT144)
490 *(.upper_font_directory.Batt24*)
491
492 __font_directory_end = .;
493 LONG( -1 ); /* Magic End Marker */
494
495 } >UPPER
496
527 497
528 498
529 499
530 /* Used by the startup to initialize data */ 500 /* Used by the startup to initialize data */
531 _sidata = LOADADDR(.data); 501 _sidata = LOADADDR(.data);
568 ._user_heap_stack : 538 ._user_heap_stack :
569 { 539 {
570 . = ALIGN(8); 540 . = ALIGN(8);
571 PROVIDE ( end = . ); 541 PROVIDE ( end = . );
572 PROVIDE ( _end = . ); 542 PROVIDE ( _end = . );
543 PROVIDE ( __end__ = . );
573 . = . + _Min_Heap_Size; 544 . = . + _Min_Heap_Size;
574 . = . + _Min_Stack_Size; 545 . = . + _Min_Stack_Size;
575 . = ALIGN(8); 546 . = ALIGN(8);
576 _estack = .; 547 _estack = .;
577 } >RAM 548 } >RAM