/**********************************************************
  File   : ldscript 
  Author : Cesar Fuguet
  Date   : June 2011
**********************************************************/

/* Definition of the base address for code segment */ 

seg_reset_code_base     = 0xBFC00000; 

seg_reset_stack_base    = 0x08000000 - 0x4000;; 
seg_reset_stack_size    = 0x4000; 

/* Grouping sections into segments */

ENTRY(reset)

SECTIONS
{
    . = seg_reset_code_base;
    .text : 
    {
        *(.reset)
        *(.rodata)
        *(.rodata.*)
        . = ALIGN(0x4);
        dtb_addr = .;
        INCLUDE "build/platform.ld";
    }

    . = seg_reset_stack_base;
    .bss ALIGN(0x4) (NOLOAD) : 
    {
        *(.data)
        *(.bss)
    }
}
