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

/* Definition of the base address for all segments */ 

seg_stack_base    = 0x10000000 - 0x8000 - 0x4;
seg_boot_base     = 0xBFC00000;       /* le code de boot */

/* Grouping sections into segments */

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

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