source: trunk/softs/tsar_boot/ldscript @ 286

Last change on this file since 286 was 276, checked in by bouyer, 12 years ago

A boot loader to be stored in ROM of a TSAR platform.
Based on Cesar FUGUET's work.
Platform-specific files are in a subdirectory, e.g. platform_fpga_de2-115,
so the same code can be targetted to different platforms.
The platform is selected with the PLATFORM_DIR environnement variable.
The supported variant are soclib and fpga, the later being the default
and the former selected by defining the SOCLIB environnement variable.
The boot loader embeds a binary device tree describing the platform,
to be used by the loaded software.

File size: 781 bytes
Line 
1/**********************************************************
2  File :   ldscript
3  Author : Cesar Fuguet
4  Date :   June 2011
5**********************************************************/
6
7/* definition of the base address for all segments
8The peripherals base addresses are referenced by the
9software drivers and must be defined, even if the
10peripherals are not present in the architecture */
11
12seg_stack_base          = 0x04000000;
13seg_reset_heap_base     = 0x04400000;
14
15seg_reset_code_base     = 0xBFC00000;       /* le code de boot */
16
17/* Grouping sections into segments */
18
19ENTRY(boot)
20SECTIONS
21{
22    . = seg_reset_code_base;
23    .text : {
24        *(.boot)
25        *(.reset)
26    }
27
28    .data ALIGN(0x4) : {
29        *(.reset_data)
30        . = ALIGN(0x4);
31        dtb_addr = .;
32        INCLUDE "objs/platform.ld";
33    }
34}
Note: See TracBrowser for help on using the repository browser.