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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [newlib-1.18.0/] [libgloss/] [mn10200/] [sim.ld] - Blame information for rev 816

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

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

powered by: WebSVN 2.1.0

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