source: trunk/Softwares/Min.or32/src/ldscript/or32.ld @ 2

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 1.3 KB
Line 
1ENTRY(_start)
2OUTPUT_ARCH(or32)
3/*
4__DYNAMIC  =  0;
5*/
6
7/*
8 * Memory Mapping
9 */
10
11MEMORY
12{
13        iram     : ORIGIN = 0x00000000, LENGTH = 0x01000000
14        dram     : ORIGIN = 0x10000000, LENGTH = 0x10000000
15        dram_unc : ORIGIN = 0x40000000, LENGTH = 0x01000000
16}
17
18/*
19 * Allocate the stack to be at the top of memory, since the stack
20 * grows down.
21 */
22PROVIDE (_stack       = 0x52000000 - 4);
23PROVIDE (__stack      = 0x52000000 - 4);
24PROVIDE (_stack_alloc = 0x00500000    );
25SECTIONS
26{
27   /*
28    * Code
29    */
30
31   .text :
32        {
33                *(.text)
34        } > iram
35
36   /*
37    * Data
38    */
39
40   .rodata :
41        {
42                *(.rodata);
43                *(.rodata.*);
44        } > dram
45
46   .data :
47        {
48                sdata   =  .;
49                _sdata  =  .;
50                *(.data)
51                edata   =  .;
52                _edata  =  .;
53        } > dram
54   .bss SIZEOF(.data) + ADDR(.data) :
55        {
56                sbss         = . ;
57                _sbss        = . ;
58                __bss_start  = ALIGN(0x8);
59                ___bss_start = ALIGN(0x8);
60                *(.bss)
61                *(COMMON)
62                end          = ALIGN(0x8);
63                _end         = ALIGN(0x8);
64                __end        = ALIGN(0x8);
65                ebss         = .;
66                _ebss        = .;
67        }
68/*
69    .stab  0 (NOLOAD) :
70        {
71                [ .stab ]
72        }
73       
74    .stabstr  0 (NOLOAD) :
75        {
76                [ .stabstr ]
77        }
78*/
79
80
81   /*
82    * Suppression de la section comment
83    */
84
85   /DISCARD/ :
86        {
87        *(.comment)
88        *(.gnu.*)
89        *(.stab*)
90        }
91}
92
Note: See TracBrowser for help on using the repository browser.