source: trunk/softs/soft_hello_giet/ldscript @ 623

Last change on this file since 623 was 623, checked in by alain, 10 years ago

Introducing the soft_hello_giet application.

File size: 1.8 KB
Line 
1/**********************************************************
2        File : ldscript
3        Author : Alain Greiner
4        Date : January 2014
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_reset_base  = 0x00000000;       /* boot code */
13
14seg_kcode_base  = 0x00010000;       /* kernel code */
15seg_kdata_base  = 0x00020000;       /* kernel cacheable data */
16seg_kunc_base   = 0x00030000;       /* kernel uncacheable data */
17
18seg_code_base   = 0x00040000;       /* application code */
19seg_data_base   = 0x00050000;       /* application data */
20
21seg_heap_base   = 0x00100000;       /* heaps for application tasks */
22seg_stack_base  = 0x00300000;       /* stacks */
23
24seg_xcu_base    = 0xF0000000;       /* controler XCU */
25seg_tty_base    = 0xF2000000;       /* controler TTY */
26seg_fbf_base    = 0xF3000000;       /* controler FBF */
27seg_ioc_base    = 0xF4000000;       /* controler IOC */
28seg_mmc_base    = 0xFF000000;       /* config    MMC */
29
30
31/* Grouping sections into segments */
32
33SECTIONS
34{
35   . = seg_kcode_base;
36   seg_kcode : {
37      *(.giet)
38      *(.switch)
39      *(.drivers)
40      *(.isr)
41   }
42   . = seg_kdata_base;
43   seg_kdata : {
44      *(.kdata)
45   }
46   . = seg_kunc_base;
47   seg_kunc : {
48      *(.unckdata)
49   }
50   . = seg_kdata_base;
51   seg_kdata : {
52      *(.ksave)
53   }
54   . = seg_code_base;
55   seg_code : {
56      *(.text)
57   }
58   . = seg_reset_base;
59   seg_reset : {
60      *(.reset)
61   }
62   . = seg_data_base;
63   seg_data : {
64      *(.rodata)
65      . = ALIGN(4);
66      *(.rodata.*)
67      . = ALIGN(4);
68      *(.data)
69      . = ALIGN(4);
70      *(.sdata)
71      . = ALIGN(4);
72      *(.bss)
73      *(COMMON)
74      *(.sbss)
75   }
76}
77
Note: See TracBrowser for help on using the repository browser.