source: trunk/softs/soft_sort_giet/ldscript @ 631

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

Introducing support for RAMDISK in giet_tsar

  • Property svn:executable set to *
File size: 2.3 KB
RevLine 
[626]1/**********************************************************
2        File : ldscript
[629]3        Author : Alain Greiner
[626]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
[631]12seg_reset_base   = 0x00000000;       /* boot code                   */
[626]13
[631]14seg_kcode_base   = 0x00010000;       /* kernel code                 */
15seg_kdata_base   = 0x00020000;       /* kernel cacheable data       */
16seg_kunc_base    = 0x00030000;       /* kernel uncacheable data     */
[626]17
[631]18seg_code_base    = 0x00040000;       /* application code            */
19seg_data_base    = 0x00050000;       /* application data            */
[626]20
[631]21seg_heap_base    = 0x00100000;       /* heaps for applications      */
22seg_stack_base   = 0x00300000;       /* stacks ifor applications    */
[626]23
[631]24seg_ramdisk_base = 0x00800000;       /* virtual disk                */
[626]25
[631]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               */
[626]34
[631]35
[626]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.