source: trunk/softs/tsar_boot/conf/platform_fpga_de2-115/ldscript @ 562

Last change on this file since 562 was 562, checked in by bouyer, 11 years ago

Now that the stack also contains some important structure, move it
to top of ram, so that it's less likely to be overwritten by second-stage
boot loaders.

File size: 664 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 */
8
9seg_stack_base    = 0x08000000 - 0x4000;
10seg_boot_base     = 0xBFC00000;       /* le code de boot */
11
12/* Grouping sections into segments */
13
14ENTRY(boot)
15SECTIONS
16{
17    . = seg_boot_base;
18    .text : {
19        *(.boot)
20        *(.reset)
21        *(.rodata)
22        *(.rodata.*)
23        . = ALIGN(0x4);
24        dtb_addr = .;
25        INCLUDE "build/platform.ld";
26    }
27
28    . = seg_stack_base;
29    .data ALIGN(0x4) : {
30        *(.data)
31        *(.bss)
32    }
33}
Note: See TracBrowser for help on using the repository browser.