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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [libgloss/] [mn10300/] [eval.ld] - Blame information for rev 1765

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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