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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [sim/] [rtl_sim/] [bin/] [template.x] - Blame information for rev 155

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

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

powered by: WebSVN 2.1.0

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