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

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

seg_reset_boot_base     = 0xBFC00000;       /* le code de boot */

seg_reset_stack_base    = 0x10000000 - 0x8000 - 0x4;
seg_reset_stack_base    = 0x00008000;

/* 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)
    }
}
