RAMEND     =? 0x9F00;
STACKLEN   =?  0x800;
STACKSTART = RAMEND - STACKLEN;

MEMORY
{
 zero : org = 2 , len = 0x7e
 ram : org = 0x801, len= RAMEND-STACKLEN-0x801
 stack : org = STACKSTART, len=STACKLEN
}

SECTIONS
{
  text : {*(text)} >ram
  .dtors : { *(.dtors) } > ram
  .ctors : { *(.ctors) } > ram
  rodata : {*(rodata)} >ram
  data: {*(data)} >ram
  init : {*(init)} >ram
  zpage (NOLOAD) : {*(zpage) *(zp1) *(zp2)} >zero
  bss (NOLOAD): {*(bss)} >ram

  __BB = ADDR(bss);
  __BE = ADDR(bss)+SIZEOF(bss);
  __SE = STACKSTART+STACKLEN;
  ___heap =? ADDR(bss)+SIZEOF(bss);
  ___heapend =? STACKSTART - 1;
}
