X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Farm.git;a=blobdiff_plain;f=betty%2Flpc2220_rom.ld;h=92a99a059394cf5f3e2883a1fd591cf5de978e39;hp=ab48644b12eb9b06e9696ce18483176ba75972a0;hb=26b834d1801d8453bb25b6b427a6b6c3b131cf57;hpb=a55e3dfcfbb7d2ace35f07a9fa665a45d0cc4d9e diff --git a/betty/lpc2220_rom.ld b/betty/lpc2220_rom.ld index ab48644..92a99a0 100644 --- a/betty/lpc2220_rom.ld +++ b/betty/lpc2220_rom.ld @@ -32,12 +32,27 @@ SECTIONS { . = ALIGN(4); + /* define text end symbol */ + _etext = .; + PROVIDE(etext = .); + /* initialized data */ - .data : { *(.data) } > RAM AT FLASH_BANK0 + .data : { + _data = .; + *(.data) + } > RAM AT > FLASH_BANK0 . = ALIGN(4); + /* define data end symbol */ + _edata = .; + PROVIDE(edata = .); + /* uninitialized data */ - .bss : { *(.bss) } > RAM AT FLASH_BANK0 + .bss (NOLOAD) : { *(.bss) } > RAM + + /* define bss end symbol */ + _bss_end = .; + PROVIDE(bss_end = .); }