X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=betty%2Flpc2220_rom.ld;h=ab48644b12eb9b06e9696ce18483176ba75972a0;hb=96c6e10b97b3cce49a3c2090108ea29d23ec3950;hp=11fa38dfddc15d4718420d4cd7a9e675365f4759;hpb=21b21d3d5c7feb1ece4c8ea3d495e03c502450ea;p=my-code%2Farm.git diff --git a/betty/lpc2220_rom.ld b/betty/lpc2220_rom.ld index 11fa38d..ab48644 100644 --- a/betty/lpc2220_rom.ld +++ b/betty/lpc2220_rom.ld @@ -8,9 +8,9 @@ /* memory definitions */ MEMORY { - FLASH_BANK0 (rx) : ORIGIN=0x80000000, LENGTH=0x00100000 - FLASH_BANK2 (rx) : ORIGIN=0x82000000, LENGTH=0x00100000 - RAM (rw) : ORIGIN=0x40000000, LENGTH=0x00010000 + FLASH_BANK0 (rx) : ORIGIN = 0x80000000, LENGTH = 0x00100000 + FLASH_BANK2 (rx) : ORIGIN = 0x82000000, LENGTH = 0x00100000 + RAM (rw) : ORIGIN = 0x40000000, LENGTH = 0x00010000 } /* section definitions */ @@ -19,25 +19,25 @@ SECTIONS { /* startup and user code (.text) */ .text : { - startup.o(.text) // startup code - *(.text) // our code - *(.glue_7) // glue code - *(.glue_7t) // glue code + startup.o(.text) + *(.text) + *(.glue_7) + *(.glue_7t) } > FLASH_BANK0 - . = ALIGN(4) + . = ALIGN(4); /* read only data */ - .rodata : { *(.rodata) } > FLASH_BANK0 + .rodata : { *(.rodata*) } > FLASH_BANK0 - . = ALIGN(4) + . = ALIGN(4); /* initialized data */ - .data : { *(.data) } > RAM + .data : { *(.data) } > RAM AT FLASH_BANK0 . = ALIGN(4); /* uninitialized data */ - .bss : { *(.bss) } > RAM + .bss : { *(.bss) } > RAM AT FLASH_BANK0 }