Guest User

CSMG Sarma

a guest
Apr 2nd, 2010
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. /*-----  Stack(s) size / heap size are defined here  ---------*/
  3.  
  4.    heap_size      = 1024;
  5.    stack_fiq_size = 16;
  6.    stack_irq_size = 512;
  7.    stack_app_size = 1024;
  8.  
  9. /*------------------------------------------------------------------------*/
  10.              /* LPC2146 */
  11. MEMORY
  12. {
  13.    FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x00080000
  14.    RAM (rw)   : ORIGIN = 0x40000000, LENGTH = 0x00008000
  15. }
  16.  
  17.  
  18. SECTIONS
  19. {
  20.  
  21.    .text :
  22.    {
  23.      *(.reset)                  /* Startup code */
  24.      *(.text)                  /* remaining code */
  25.      *(.rodata)                 /* read-only data (constants) */
  26.      *(.rodata*)
  27.      *(.glue_7)
  28.      *(.glue_7t)
  29.    } > FLASH
  30.  
  31.    . = ALIGN(4);
  32.    _etext = . ;
  33.    PROVIDE (etext = .);
  34.  
  35.    /* .data section which is used for initialized data */
  36.    .data : AT (_etext)
  37.    {
  38.      _data = .;
  39.      *(.data)
  40.    } > RAM
  41.  
  42.    . = ALIGN(4);
  43.    _edata = . ;
  44.    PROVIDE (edata = .);
  45.  
  46.    /* .bss section which is used for uninitialized data */
  47.    .bss (NOLOAD) :
  48.    {
  49.      __bss_start = . ;
  50.      __bss_start__ = . ;
  51.      *(.bss)
  52.      *(COMMON)
  53.      . = ALIGN(4);
  54.    } > RAM
  55.  
  56.    . = ALIGN(4);
  57.    __bss_end__ = . ;
  58.    PROVIDE (__bss_end = .);
  59.  
  60.    .heap ALIGN(__bss_end__ , 4) (NOLOAD) :
  61.    {
  62.      __heap_start__ = .;
  63.      *(.heap)
  64.    }
  65.    __heap_end__ = __heap_start__ + heap_size;
  66.  
  67.    .stack_bottom  ALIGN(__heap_end__ , 4) (NOLOAD) :
  68.    {
  69.       __stack__bottom__ = .;
  70.       *(.stack)
  71.    }
  72.    __stack_bottom_end__ = __stack__bottom__  + stack_fiq_size ;
  73.  
  74.    .stack_fiq_bottom  ALIGN(__stack_bottom_end__ , 4) (NOLOAD) :
  75.    {
  76.       __stack__fiq_bottom__ = .;
  77.       *(.stack)
  78.    }
  79.    __stack_fiq_bottom_end__ = __stack__fiq_bottom__  + stack_irq_size ;
  80.  
  81.    .stack_irq_bottom  ALIGN(__stack_fiq_bottom_end__ , 4) (NOLOAD) :
  82.    {
  83.       __stack_irq_bottom__ = .;
  84.       *(.stack)
  85.    }
  86.    __stack_irq_bottom_end__ = __stack_irq_bottom__  + stack_app_size ;
  87.  
  88.   _end = . ;
  89.   PROVIDE (end = .);
  90.  
  91.   /* Stabs debugging sections.  */
  92.   .stab          0 : { *(.stab) }
  93.   .stabstr       0 : { *(.stabstr) }
  94.   .stab.excl     0 : { *(.stab.excl) }
  95.   .stab.exclstr  0 : { *(.stab.exclstr) }
  96.   .stab.index    0 : { *(.stab.index) }
  97.   .stab.indexstr 0 : { *(.stab.indexstr) }
  98.   .comment       0 : { *(.comment) }
  99.   /* DWARF debug sections.
  100.      Symbols in the DWARF debugging sections are relative to the beginning
  101.      of the section so we begin them at 0.  */
  102.   /* DWARF 1 */
  103.   .debug          0 : { *(.debug) }
  104.   .line           0 : { *(.line) }
  105.   /* GNU DWARF 1 extensions */
  106.   .debug_srcinfo  0 : { *(.debug_srcinfo) }
  107.   .debug_sfnames  0 : { *(.debug_sfnames) }
  108.   /* DWARF 1.1 and DWARF 2 */
  109.   .debug_aranges  0 : { *(.debug_aranges) }
  110.   .debug_pubnames 0 : { *(.debug_pubnames) }
  111.   /* DWARF 2 */
  112.   .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }
  113.   .debug_abbrev   0 : { *(.debug_abbrev) }
  114.   .debug_line     0 : { *(.debug_line) }
  115.   .debug_frame    0 : { *(.debug_frame) }
  116.   .debug_str      0 : { *(.debug_str) }
  117.   .debug_loc      0 : { *(.debug_loc) }
  118.   .debug_macinfo  0 : { *(.debug_macinfo) }
  119.   /* SGI/MIPS DWARF 2 extensions */
  120.   .debug_weaknames 0 : { *(.debug_weaknames) }
  121.   .debug_funcnames 0 : { *(.debug_funcnames) }
  122.   .debug_typenames 0 : { *(.debug_typenames) }
  123.   .debug_varnames  0 : { *(.debug_varnames) }
  124. }
Advertisement
Add Comment
Please, Sign In to add comment