FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/finlink/ld-script.src @ 636:06ecb305f650
flashImage for BootROM-enabled targets: put something sensible at 0
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Sep 2014 19:34:31 +0000 |
parents | da72b51c0572 |
children | 46e5c90fd0b8 |
comparison
equal
deleted
inserted
replaced
635:658a83ff7221 | 636:06ecb305f650 |
---|---|
27 RAMFFS_BLKSIZE_BYTES = 1 << RAMFFS_BLKSIZE_LOG2; | 27 RAMFFS_BLKSIZE_BYTES = 1 << RAMFFS_BLKSIZE_LOG2; |
28 RAMFFS_TOTAL_SIZE = RAMFFS_BLKSIZE_BYTES * RAMFFS_NBLOCKS; | 28 RAMFFS_TOTAL_SIZE = RAMFFS_BLKSIZE_BYTES * RAMFFS_NBLOCKS; |
29 ')dnl | 29 ')dnl |
30 | 30 |
31 SECTIONS { | 31 SECTIONS { |
32 ifelse(Buildmem,FLASH,` | 32 dnl The following sections exist only in the flashImage build, |
33 /* Flash boot entry point */ | 33 dnl and only on targets that use the Calypso boot ROM. |
34 ifelse(Buildmem-FLASH_BOOT_VIA_BOOTROM,FLASH-1, | |
35 ` /* Part of flash overlaid by the boot ROM */ | |
36 bootrom.overlay 0 : { | |
37 *(bootrom.overlay) | |
38 } > FLASH_OVERLAY | |
39 | |
40 /* code that enables the boot ROM and jumps to it */ | |
41 bootrom.switch : { | |
42 *(bootrom.switch) | |
43 } > IRAM AT> FLASH_OVERLAY | |
44 __romswitch_ram_addr = ADDR(bootrom.switch); | |
45 __romswitch_flash_addr = LOADADDR(bootrom.switch); | |
46 __romswitch_size = SIZEOF(bootrom.switch); | |
47 ')dnl | |
48 | |
49 dnl all flashImage builds | |
50 ifelse(Buildmem,FLASH, | |
51 ` /* Flash boot entry point */ | |
34 flashboot.text FLASHIMAGE_BASE_ADDR : { | 52 flashboot.text FLASHIMAGE_BASE_ADDR : { |
35 *(flashboot.text) | 53 *(flashboot.text) |
36 } > FLASH | 54 } > FLASH |
37 ')dnl | 55 ')dnl |
38 | 56 |