OpenCores
URL https://opencores.org/ocsvn/openmsp430/openmsp430/trunk

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [sim/] [rtl_sim/] [src/] [ldscript_example.x] - Blame information for rev 200

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 115 olivier.gi
/* Default linker script, for normal executables */
2 145 olivier.gi
OUTPUT_FORMAT("elf32-msp430")
3 142 olivier.gi
OUTPUT_ARCH("msp430")
4 178 olivier.gi
MEMORY
5
{
6
  data    (rwx)         : ORIGIN = 0x0200,      LENGTH = 0x0080
7
  text    (rx)          : ORIGIN = 0xf800,      LENGTH = 0x0800-0x20
8
  vectors (rw)          : ORIGIN = 0xffe0,      LENGTH = 0x20
9 115 olivier.gi
}
10 178 olivier.gi
REGION_ALIAS("REGION_TEXT", text);
11
REGION_ALIAS("REGION_DATA", data);
12 142 olivier.gi
__WDTCTL = 0x0120;
13 145 olivier.gi
__MPY    = 0x0130;
14
__MPYS   = 0x0132;
15
__MAC    = 0x0134;
16
__MACS   = 0x0136;
17
__OP2    = 0x0138;
18
__RESLO  = 0x013A;
19
__RESHI  = 0x013C;
20
__SUMEXT = 0x013E;
21 142 olivier.gi
 
22 115 olivier.gi
SECTIONS
23
{
24
  /* Read-only sections, merged into text segment.  */
25 178 olivier.gi
  .hash          : { *(.hash)             }
26
  .dynsym        : { *(.dynsym)           }
27
  .dynstr        : { *(.dynstr)           }
28
  .gnu.version   : { *(.gnu.version)      }
29
  .gnu.version_d   : { *(.gnu.version_d)  }
30
  .gnu.version_r   : { *(.gnu.version_r)  }
31
  .rel.init      : { *(.rel.init) }
32 115 olivier.gi
  .rela.init     : { *(.rela.init) }
33 178 olivier.gi
  .rel.text      :
34
    {
35
      *(.rel.text)
36
      *(.rel.text.*)
37
      *(.rel.gnu.linkonce.t*)
38
    }
39
  .rela.text     :
40
    {
41
      *(.rela.text)
42
      *(.rela.text.*)
43
      *(.rela.gnu.linkonce.t*)
44
    }
45
  .rel.fini      : { *(.rel.fini) }
46 115 olivier.gi
  .rela.fini     : { *(.rela.fini) }
47 178 olivier.gi
  .rel.rodata    :
48
    {
49
      *(.rel.rodata)
50
      *(.rel.rodata.*)
51
      *(.rel.gnu.linkonce.r*)
52
    }
53
  .rela.rodata   :
54
    {
55
      *(.rela.rodata)
56
      *(.rela.rodata.*)
57
      *(.rela.gnu.linkonce.r*)
58
    }
59
  .rel.data      :
60
    {
61
      *(.rel.data)
62
      *(.rel.data.*)
63
      *(.rel.gnu.linkonce.d*)
64
    }
65
  .rela.data     :
66
    {
67
      *(.rela.data)
68
      *(.rela.data.*)
69
      *(.rela.gnu.linkonce.d*)
70
    }
71
  .rel.ctors     : { *(.rel.ctors)        }
72
  .rela.ctors    : { *(.rela.ctors)       }
73
  .rel.dtors     : { *(.rel.dtors)        }
74
  .rela.dtors    : { *(.rela.dtors)       }
75
  .rel.got       : { *(.rel.got)          }
76
  .rela.got      : { *(.rela.got)         }
77
  .rel.bss       : { *(.rel.bss)          }
78
  .rela.bss      : { *(.rela.bss)         }
79
  .rel.plt       : { *(.rel.plt)          }
80
  .rela.plt      : { *(.rela.plt)         }
81
  /* Internal text space.  */
82 115 olivier.gi
  .text :
83
  {
84 178 olivier.gi
    . = ALIGN(2);
85
    *(.init)
86
    *(.init0)  /* Start here after reset.  */
87
    *(.init1)
88
    *(.init2)  /* Copy data loop  */
89
    *(.init3)
90
    *(.init4)  /* Clear bss  */
91
    *(.init5)
92
    *(.init6)  /* C++ constructors.  */
93
    *(.init7)
94
    *(.init8)
95
    *(.init9)  /* Call main().  */
96 115 olivier.gi
     __ctors_start = . ;
97 178 olivier.gi
     *(.ctors)
98 115 olivier.gi
     __ctors_end = . ;
99
     __dtors_start = . ;
100 178 olivier.gi
     *(.dtors)
101 115 olivier.gi
     __dtors_end = . ;
102 178 olivier.gi
    . = ALIGN(2);
103
    *(.text)
104
    . = ALIGN(2);
105
    *(.text.*)
106
    . = ALIGN(2);
107
    *(.fini9)  /*   */
108
    *(.fini8)
109
    *(.fini7)
110
    *(.fini6)  /* C++ destructors.  */
111
    *(.fini5)
112
    *(.fini4)
113
    *(.fini3)
114
    *(.fini2)
115
    *(.fini1)
116
    *(.fini0)  /* Infinite loop after program termination.  */
117
    *(.fini)
118
  }  > text
119 145 olivier.gi
  .rodata   :
120 115 olivier.gi
  {
121 145 olivier.gi
     . = ALIGN(2);
122
    *(.rodata .rodata.* .gnu.linkonce.r.*)
123
     . = ALIGN(2);
124 178 olivier.gi
  }  > text
125 145 olivier.gi
   _etext = .; /* Past last read-only (loadable) segment */
126 178 olivier.gi
  .data   : AT (ADDR (.text) + SIZEOF (.text) + SIZEOF (.rodata) )
127 145 olivier.gi
  {
128 115 olivier.gi
     PROVIDE (__data_start = .) ;
129 178 olivier.gi
    . = ALIGN(2);
130
    *(.data)
131
    . = ALIGN(2);
132
    *(.gnu.linkonce.d*)
133
    . = ALIGN(2);
134
     _edata = . ;
135
  }  > data
136 145 olivier.gi
   PROVIDE (__data_load_start = LOADADDR(.data) );
137
   PROVIDE (__data_size = SIZEOF(.data) );
138 178 olivier.gi
  .bss  SIZEOF(.data) + ADDR(.data) :
139 115 olivier.gi
  {
140
     PROVIDE (__bss_start = .) ;
141 178 olivier.gi
    *(.bss)
142 115 olivier.gi
    *(COMMON)
143
     PROVIDE (__bss_end = .) ;
144 178 olivier.gi
     _end = . ;
145
  }  > data
146 145 olivier.gi
   PROVIDE (__bss_size = SIZEOF(.bss) );
147 178 olivier.gi
  .noinit  SIZEOF(.bss) + ADDR(.bss) :
148 115 olivier.gi
  {
149
     PROVIDE (__noinit_start = .) ;
150 178 olivier.gi
    *(.noinit)
151
    *(COMMON)
152 115 olivier.gi
     PROVIDE (__noinit_end = .) ;
153 178 olivier.gi
     _end = . ;
154
  }  > data
155 115 olivier.gi
  .vectors  :
156
  {
157
     PROVIDE (__vectors_start = .) ;
158 178 olivier.gi
    *(.vectors*)
159 115 olivier.gi
     _vectors_end = . ;
160
  }  > vectors
161 145 olivier.gi
  /* Stabs for profiling information*/
162
  .profiler 0 : { *(.profiler) }
163 115 olivier.gi
  /* Stabs debugging sections.  */
164
  .stab 0 : { *(.stab) }
165
  .stabstr 0 : { *(.stabstr) }
166
  .stab.excl 0 : { *(.stab.excl) }
167
  .stab.exclstr 0 : { *(.stab.exclstr) }
168
  .stab.index 0 : { *(.stab.index) }
169
  .stab.indexstr 0 : { *(.stab.indexstr) }
170
  .comment 0 : { *(.comment) }
171
  /* DWARF debug sections.
172
     Symbols in the DWARF debugging sections are relative to the beginning
173
     of the section so we begin them at 0.  */
174
  /* DWARF 1 */
175
  .debug          0 : { *(.debug) }
176
  .line           0 : { *(.line) }
177
  /* GNU DWARF 1 extensions */
178
  .debug_srcinfo  0 : { *(.debug_srcinfo) }
179
  .debug_sfnames  0 : { *(.debug_sfnames) }
180
  /* DWARF 1.1 and DWARF 2 */
181
  .debug_aranges  0 : { *(.debug_aranges) }
182
  .debug_pubnames 0 : { *(.debug_pubnames) }
183
  /* DWARF 2 */
184
  .debug_info     0 : { *(.debug_info) *(.gnu.linkonce.wi.*) }
185
  .debug_abbrev   0 : { *(.debug_abbrev) }
186
  .debug_line     0 : { *(.debug_line) }
187
  .debug_frame    0 : { *(.debug_frame) }
188
  .debug_str      0 : { *(.debug_str) }
189
  .debug_loc      0 : { *(.debug_loc) }
190
  .debug_macinfo  0 : { *(.debug_macinfo) }
191 178 olivier.gi
  PROVIDE (__stack = ORIGIN(data) + LENGTH(data));
192
  PROVIDE (__data_start_rom = _etext) ;
193
  PROVIDE (__data_end_rom   = _etext + SIZEOF (.data)) ;
194 115 olivier.gi
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.