X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?p=my-code%2Farm.git;a=blobdiff_plain;f=betty%2Flpc2220_rom.ld;h=40ed2abfebe73715bd12d2ae1a9ba71491fa03f9;hp=1109baa79ea4e7d67476f65e50c04f9955f90e66;hb=HEAD;hpb=2cbc6d2f18a38237fcd1df2ef67ba315af080f03 diff --git a/betty/lpc2220_rom.ld b/betty/lpc2220_rom.ld index 1109baa..40ed2ab 100644 --- a/betty/lpc2220_rom.ld +++ b/betty/lpc2220_rom.ld @@ -10,7 +10,7 @@ MEMORY { FLASH_BANK0 (rx) : ORIGIN = 0x80000000, LENGTH = 0x00100000 FLASH_BANK2 (rx) : ORIGIN = 0x82000000, LENGTH = 0x00100000 - RAM (rw) : ORIGIN = 0x40000000, LENGTH = 0x00010000 + RAM (rw) : ORIGIN = 0x40000000, LENGTH = 0x00010000 - (4 * 1024) } /* section definitions */ @@ -32,12 +32,27 @@ SECTIONS { . = ALIGN(4); + /* define text end symbol */ + _etext = .; + PROVIDE(etext = .); + /* initialized data */ - .data : { *(.data) } > RAM + .data : { + _data = .; + *(.data) + } > RAM AT > FLASH_BANK0 . = ALIGN(4); + /* define data end symbol */ + _edata = .; + PROVIDE(edata = .); + /* uninitialized data */ - .bss : { *(.bss) } > RAM + .bss (NOLOAD) : { *(.bss) } > RAM + + /* define bss end symbol */ + _bss_end = .; + PROVIDE(bss_end = .); }