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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-newlib/] [newlib-1.17.0/] [libgloss/] [mn10300/] [sim.ld] - Blame information for rev 9

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 9 jlechner
/* Linker script for the MN10300 simulator.
2
*/
3
 
4
OUTPUT_FORMAT("elf32-mn10300", "elf32-mn10300",
5
              "elf32-mn10300")
6
OUTPUT_ARCH(mn10300)
7
ENTRY(_start)
8
GROUP(-lc -leval -lgcc)
9
 SEARCH_DIR(.);
10
/* Do we need any of these for elf?
11
   __DYNAMIC = 0;    */
12
SECTIONS
13
{
14
  /* Read-only sections, merged into text segment: */
15
  /* Start of RAM (leaving room for Cygmon data) */
16
  . = 4;
17
 
18
  .interp     : { *(.interp)    }
19
  .hash          : { *(.hash)           }
20
  .dynsym        : { *(.dynsym)         }
21
  .dynstr        : { *(.dynstr)         }
22
  .gnu.version   : { *(.gnu.version)    }
23
  .gnu.version_d   : { *(.gnu.version_d)        }
24
  .gnu.version_r   : { *(.gnu.version_r)        }
25
  .rel.text      :
26
    { *(.rel.text) *(.rel.gnu.linkonce.t*) }
27
  .rela.text     :
28
    { *(.rela.text) *(.rela.gnu.linkonce.t*) }
29
  .rel.data      :
30
    { *(.rel.data) *(.rel.gnu.linkonce.d*) }
31
  .rela.data     :
32
    { *(.rela.data) *(.rela.gnu.linkonce.d*) }
33
  .rel.rodata    :
34
    { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
35
  .rela.rodata   :
36
    { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
37
  .rel.got       : { *(.rel.got)                }
38
  .rela.got      : { *(.rela.got)               }
39
  .rel.ctors     : { *(.rel.ctors)      }
40
  .rela.ctors    : { *(.rela.ctors)     }
41
  .rel.dtors     : { *(.rel.dtors)      }
42
  .rela.dtors    : { *(.rela.dtors)     }
43
  .rel.init      : { *(.rel.init)       }
44
  .rela.init     : { *(.rela.init)      }
45
  .rel.fini      : { *(.rel.fini)       }
46
  .rela.fini     : { *(.rela.fini)      }
47
  .rel.bss       : { *(.rel.bss)                }
48
  .rela.bss      : { *(.rela.bss)               }
49
  .rel.plt       : { *(.rel.plt)                }
50
  .rela.plt      : { *(.rela.plt)               }
51
  .init          : { *(.init)   } =0
52
  .plt      : { *(.plt) }
53
  .text      :
54
  {
55
    *(.text)
56
    /* .gnu.warning sections are handled specially by elf32.em.  */
57
    *(.gnu.warning)
58
    *(.gnu.linkonce.t*)
59
    *(.gcc_except_table)
60
  } =0
61
  _etext = .;
62
  PROVIDE (etext = .);
63
  .fini      : { *(.fini)    } =0
64
  .rodata    : { *(.rodata) *(.gnu.linkonce.r*) }
65
  .rodata1   : { *(.rodata1) }
66
  /* Adjust the address for the data segment.  We want to adjust up to
67
     the same address within the page on the next page up.  */
68
  . = ALIGN(1) + (. & (1 - 1));
69
  .data    :
70
  {
71
    *(.data)
72
    *(.gnu.linkonce.d*)
73
    CONSTRUCTORS
74
  }
75
  .data1   : { *(.data1) }
76
  .ctors         :
77
  {
78
    ___ctors = .;
79
    KEEP(*crtbegin.o(.ctors))
80
    KEEP(*(SORT(.ctors.*)))
81
    KEEP(*(.ctors))
82
    ___ctors_end = .;
83
  }
84
  .dtors         :
85
  {
86
    ___dtors = .;
87
    KEEP(*crtbegin.o(.dtors))
88
    KEEP(*(SORT(.dtors.*)))
89
    KEEP(*(.dtors))
90
    ___dtors_end = .;
91
  }
92
  .got           : { *(.got.plt) *(.got) }
93
  .dynamic       : { *(.dynamic) }
94
  /* We want the small data sections together, so single-instruction offsets
95
     can access them all, and initialized data all before uninitialized, so
96
     we can shorten the on-disk segment size.  */
97
  .sdata     : { *(.sdata) }
98
  _edata  =  .;
99
  PROVIDE (edata = .);
100
  __bss_start = .;
101
  .sbss      : { *(.sbss) *(.scommon) }
102
  .bss       :
103
  {
104
   *(.dynbss)
105
   *(.bss)
106
   *(COMMON)
107
  }
108
  _end = . ;
109
  PROVIDE (end = .);
110
  /* Stabs debugging sections.  */
111
  .stab 0 : { *(.stab) }
112
  .stabstr 0 : { *(.stabstr) }
113
  .stab.excl 0 : { *(.stab.excl) }
114
  .stab.exclstr 0 : { *(.stab.exclstr) }
115
  .stab.index 0 : { *(.stab.index) }
116
  .stab.indexstr 0 : { *(.stab.indexstr) }
117
  .comment 0 : { *(.comment) }
118
  /* DWARF debug sections.
119
     Symbols in the DWARF debugging sections are relative to the beginning
120
     of the section so we begin them at 0.  */
121
  /* DWARF 1 */
122
  .debug          0 : { *(.debug) }
123
  .line           0 : { *(.line) }
124
  /* GNU DWARF 1 extensions */
125
  .debug_srcinfo  0 : { *(.debug_srcinfo) }
126
  .debug_sfnames  0 : { *(.debug_sfnames) }
127
  /* DWARF 1.1 and DWARF 2 */
128
  .debug_aranges  0 : { *(.debug_aranges) }
129
  .debug_pubnames 0 : { *(.debug_pubnames) }
130
  /* DWARF 2 */
131
  .debug_info     0 : { *(.debug_info) }
132
  .debug_abbrev   0 : { *(.debug_abbrev) }
133
  .debug_line     0 : { *(.debug_line) }
134
  .debug_frame    0 : { *(.debug_frame) }
135
  .debug_str      0 : { *(.debug_str) }
136
  .debug_loc      0 : { *(.debug_loc) }
137
  .debug_macinfo  0 : { *(.debug_macinfo) }
138
  .debug_ranges   0 : { *(.debug_ranges) }
139
  /* SGI/MIPS DWARF 2 extensions */
140
  .debug_weaknames 0 : { *(.debug_weaknames) }
141
  .debug_funcnames 0 : { *(.debug_funcnames) }
142
  .debug_typenames 0 : { *(.debug_typenames) }
143
  .debug_varnames  0 : { *(.debug_varnames) }
144
 
145
  .stack 0x80000 : { _stack = .; *(.stack) *(._stack) }
146
 
147
  /* These must appear regardless of  .  */
148
}

powered by: WebSVN 2.1.0

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