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

/* definition of the base address for all segments 
The peripherals base addresses are referenced by the
software drivers and must be defined, even if the 
peripherals are not present in the architecture */

seg_stack_base  	= 0x04000000;
seg_reset_heap_base	= 0x04400000;

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

/* Grouping sections into segments */

ENTRY(boot)
SECTIONS
{
    . = seg_reset_code_base;
    .text : {
	*(.boot)
        *(.reset)
    }

    .data ALIGN(0x4) : {
        *(.reset_data)
	. = ALIGN(0x4);
	dtb_addr = .;
	INCLUDE "objs/platform.ld";
    }
}
