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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [libgloss/] [mn10200/] [eval.ld] - Blame information for rev 820

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

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

powered by: WebSVN 2.1.0

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