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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [libgloss/] [mips/] [jmr3904app.ld] - Blame information for rev 1775

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

Line No. Rev Author Line
1 1005 ivang
/* Linker script forJMR 3904 board */
2
 
3
ENTRY(_start)
4
OUTPUT_ARCH("mips:3000")
5
OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
6
GROUP(-lc -ljmr3904 -lgcc)
7
SEARCH_DIR(.)
8
__DYNAMIC  =  0;
9
 
10
PROVIDE (_mem_size = 0x100000); /* JMR3904 comes as standard with 512k of RAM */
11
 
12
/* PROVIDE (__global = 0); */
13
 
14
/*
15
 * Initalize some symbols to be zero so we can reference them in the
16
 * crt0 without core dumping. These functions are all optional, but
17
 * we do this so we can have our crt0 always use them if they exist.
18
 * This is so BSPs work better when using the crt0 installed with gcc.
19
 * We have to initalize them twice, so we multiple object file
20
 * formats, as some prepend an underscore.
21
 */
22
PROVIDE (hardware_init_hook = 0);
23
PROVIDE (software_init_hook = 0);
24
 
25
SECTIONS
26
{
27
  . = 0x80008000;
28
      /* This is NOT the address which fits with the monitor from jmr. */
29
      /* It fits the Cygmon ROMS */
30
  .text : {
31
     _ftext = . ;
32
    *(.init)
33
     eprol  =  .;
34
    *(.text)
35
    *(.text.*)
36
    *(.gnu.linkonce.t*)
37
    *(.mips16.fn.*)
38
    *(.mips16.call.*)
39
    PROVIDE (__runtime_reloc_start = .);
40
    *(.rel.sdata)
41
    PROVIDE (__runtime_reloc_stop = .);
42
    *(.fini)
43
     etext  =  .;
44
     _etext  =  .;
45
  }
46
 
47
  .ctors    :
48
  {
49
    /* gcc uses crtbegin.o to find the start of
50
       the constructors, so we make sure it is
51
       first.  Because this is a wildcard, it
52
       doesn't matter if the user does not
53
       actually link against crtbegin.o; the
54
       linker won't look for a file to match a
55
       wildcard.  The wildcard also means that it
56
       doesn't matter which directory crtbegin.o
57
       is in.  */
58
 
59
    KEEP (*crtbegin.o(.ctors))
60
 
61
    /* We don't want to include the .ctor section from
62
       from the crtend.o file until after the sorted ctors.
63
       The .ctor section from the crtend file contains the
64
       end of ctors marker and it must be last */
65
 
66
    KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
67
    KEEP (*(SORT(.ctors.*)))
68
    KEEP (*(.ctors))
69
  }
70
 
71
  .dtors    :
72
  {
73
    KEEP (*crtbegin.o(.dtors))
74
    KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
75
    KEEP (*(SORT(.dtors.*)))
76
    KEEP (*(.dtors))
77
  }
78
 
79
  . = .;
80
  .rodata : {
81
    *(.rdata)
82
    *(.rodata)
83
    *(.rodata.*)
84
    *(.gnu.linkonce.r*)
85
  }
86
   _fdata = ALIGN(16);
87
  .data : {
88
    *(.data)
89
    *(.data.*)
90
    *(.gnu.linkonce.d*)
91
  }
92
  . = ALIGN(8);
93
  _gp = . + 0x8000;
94
  __global = _gp;
95
  .lit8 : {
96
    *(.lit8)
97
  }
98
  .lit4 : {
99
    *(.lit4)
100
  }
101
  .sdata : {
102
    *(.sdata)
103
    *(.sdata.*)
104
    *(.gnu.linkonce.s*)
105
  }
106
  . = ALIGN(4);
107
   edata  =  .;
108
   _edata  =  .;
109
   _fbss = .;
110
  .sbss : {
111
    *(.sbss)
112
    *(.scommon)
113
  }
114
  .bss : {
115
    _bss_start = . ;
116
    *(.bss)
117
    *(COMMON)
118
    . += 0x2000 ;  /* 8k bytes of stack. */
119
    __stack = ALIGN(64) ;
120
    . = __stack ;
121
  }
122
 
123
   end = .;
124
   _end = .;
125
 
126
  /* DWARF debug sections.
127
     Symbols in the DWARF debugging sections are relative to
128
     the beginning of the section so we begin them at 0.  */
129
 
130
  /* DWARF 1 */
131
  .debug          0 : { *(.debug) }
132
  .line           0 : { *(.line) }
133
 
134
  /* GNU DWARF 1 extensions */
135
  .debug_srcinfo  0 : { *(.debug_srcinfo) }
136
  .debug_sfnames  0 : { *(.debug_sfnames) }
137
 
138
  /* DWARF 1.1 and DWARF 2 */
139
  .debug_aranges  0 : { *(.debug_aranges) }
140
  .debug_pubnames 0 : { *(.debug_pubnames) }
141
 
142
  /* DWARF 2 */
143
  .debug_info     0 : { *(.debug_info) }
144
  .debug_abbrev   0 : { *(.debug_abbrev) }
145
  .debug_line     0 : { *(.debug_line) }
146
  .debug_frame    0 : { *(.debug_frame) }
147
  .debug_str      0 : { *(.debug_str) }
148
  .debug_loc      0 : { *(.debug_loc) }
149
  .debug_macinfo  0 : { *(.debug_macinfo) }
150
 
151
  /* SGI/MIPS DWARF 2 extensions */
152
  .debug_weaknames 0 : { *(.debug_weaknames) }
153
  .debug_funcnames 0 : { *(.debug_funcnames) }
154
  .debug_typenames 0 : { *(.debug_typenames) }
155
  .debug_varnames  0 : { *(.debug_varnames) }
156
}

powered by: WebSVN 2.1.0

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