source: branches/fault_tolerance/softs/soft_hello_giet/ldscript @ 737

Last change on this file since 737 was 724, checked in by cfuguet, 10 years ago

branches/fault_tolerance:

  • Recreating fault_tolerance branch with all new modifications from trunk.
  • Introducing distributed boot rom in the tsar_generic_iob platform
File size: 2.3 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 applications      */
22seg_stack_base   = 0x00300000;       /* stacks ifor applications    */
23
24seg_ramdisk_base = 0x00800000;       /* virtual disk                */
25
26seg_xcu_base     = 0xF0000000;       /* controler XCU               */
27seg_tty_base     = 0xF4000000;       /* controler TTY               */
28seg_fbf_base     = 0xF3000000;       /* controler FBF               */
29seg_ioc_base     = 0xF2000000;       /* controler IOC               */
30seg_nic_base     = 0xF7000000;       /* controler NIC               */
31seg_cma_base     = 0xF8000000;       /* controler CMA               */
32seg_pic_base     = 0xF9000000;       /* controler PIC               */
33seg_mmc_base     = 0xE0000000;       /* config    MMC               */
34
35
36/* Grouping sections into segments */
37
38SECTIONS
39{
40   . = seg_kcode_base;
41   seg_kcode : {
42      *(.giet)
43      *(.switch)
44      *(.drivers)
45      *(.isr)
46   }
47   . = seg_kdata_base;
48   seg_kdata : {
49      *(.kdata)
50   }
51   . = seg_kunc_base;
52   seg_kunc : {
53      *(.unckdata)
54   }
55   . = seg_kdata_base;
56   seg_kdata : {
57      *(.ksave)
58   }
59   . = seg_code_base;
60   seg_code : {
61      *(.text)
62   }
63   . = seg_reset_base;
64   seg_reset : {
65      *(.reset)
66   }
67   . = seg_data_base;
68   seg_data : {
69      *(.rodata)
70      . = ALIGN(4);
71      *(.rodata.*)
72      . = ALIGN(4);
73      *(.data)
74      . = ALIGN(4);
75      *(.sdata)
76      . = ALIGN(4);
77      *(.bss)
78      *(COMMON)
79      *(.sbss)
80   }
81}
82
Note: See TracBrowser for help on using the repository browser.