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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [libgloss/] [mn10300/] [sim.ld] - Blame information for rev 39

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

Line No. Rev Author Line
1 39 lampret
/* 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
  . = 0;
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(256) + (ALIGN(8) & (256 - 1));
69
  .data    :
70
  {
71
    *(.data)
72
    *(.gnu.linkonce.d*)
73
    CONSTRUCTORS
74
  }
75
  .data1   : { *(.data1) }
76
  .ctors         :
77
  {
78
    ___ctors = .;
79
    *(.ctors)
80
    ___ctors_end = .;
81
  }
82
  .dtors         :
83
  {
84
    ___dtors = .;
85
    *(.dtors)
86
    ___dtors_end = .;
87
  }
88
  .got           : { *(.got.plt) *(.got) }
89
  .dynamic       : { *(.dynamic) }
90
  /* We want the small data sections together, so single-instruction offsets
91
     can access them all, and initialized data all before uninitialized, so
92
     we can shorten the on-disk segment size.  */
93
  .sdata     : { *(.sdata) }
94
  _edata  =  .;
95
  PROVIDE (edata = .);
96
  __bss_start = .;
97
  .sbss      : { *(.sbss) *(.scommon) }
98
  .bss       :
99
  {
100
   *(.dynbss)
101
   *(.bss)
102
   *(COMMON)
103
  }
104
  _end = . ;
105
  PROVIDE (end = .);
106
  /* Stabs debugging sections.  */
107
  .stab 0 : { *(.stab) }
108
  .stabstr 0 : { *(.stabstr) }
109
  .stab.excl 0 : { *(.stab.excl) }
110
  .stab.exclstr 0 : { *(.stab.exclstr) }
111
  .stab.index 0 : { *(.stab.index) }
112
  .stab.indexstr 0 : { *(.stab.indexstr) }
113
  .comment 0 : { *(.comment) }
114
  /* DWARF debug sections.
115
     Symbols in the DWARF debugging sections are relative to the beginning
116
     of the section so we begin them at 0.  */
117
  /* DWARF 1 */
118
  .debug          0 : { *(.debug) }
119
  .line           0 : { *(.line) }
120
  /* GNU DWARF 1 extensions */
121
  .debug_srcinfo  0 : { *(.debug_srcinfo) }
122
  .debug_sfnames  0 : { *(.debug_sfnames) }
123
  /* DWARF 1.1 and DWARF 2 */
124
  .debug_aranges  0 : { *(.debug_aranges) }
125
  .debug_pubnames 0 : { *(.debug_pubnames) }
126
  /* DWARF 2 */
127
  .debug_info     0 : { *(.debug_info) }
128
  .debug_abbrev   0 : { *(.debug_abbrev) }
129
  .debug_line     0 : { *(.debug_line) }
130
  .debug_frame    0 : { *(.debug_frame) }
131
  .debug_str      0 : { *(.debug_str) }
132
  .debug_loc      0 : { *(.debug_loc) }
133
  .debug_macinfo  0 : { *(.debug_macinfo) }
134
  /* SGI/MIPS DWARF 2 extensions */
135
  .debug_weaknames 0 : { *(.debug_weaknames) }
136
  .debug_funcnames 0 : { *(.debug_funcnames) }
137
  .debug_typenames 0 : { *(.debug_typenames) }
138
  .debug_varnames  0 : { *(.debug_varnames) }
139
 
140
  .stack 0x80000 : { _stack = .; *(.stack) }
141
 
142
  /* These must appear regardless of  .  */
143
}

powered by: WebSVN 2.1.0

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