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

Subversion Repositories openfire2

[/] [openfire2/] [trunk/] [sw/] [link/] [sp3sk-sram.ld] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 toni32
SEARCH_DIR(/cygdrive/c/xilinx/microblaze/bin/../lib/gcc/microblaze/3.4.1);
2
SEARCH_DIR(/cygdrive/c/xilinx/microblaze/bin/../lib/gcc);
3
SEARCH_DIR(/cygdrive/c/xilinx/microblaze/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/lib);
4
 
5
SEARCH_DIR(/cygdrive/d/xilinx/microblaze/bin/../lib/gcc/microblaze/3.4.1);
6
SEARCH_DIR(/cygdrive/d/xilinx/microblaze/bin/../lib/gcc);
7
SEARCH_DIR(/cygdrive/d/xilinx/microblaze/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/lib);
8
 
9
/*INPUT( -lgcc );*/
10
/*GROUP( libxil.a libc.a libm.a );
11
INPUT( -lgcc );*/
12
 
13
ENTRY(_start)
14
 
15
_TEXT_START_ADDR = DEFINED(_TEXT_START_ADDR) ? _TEXT_START_ADDR : 0x04000000;   /* SRAM start */
16
_MEMORY_SIZE     = DEFINED(_MEMORY_SIZE)     ? _MEMORY_SIZE     : 0x00100000;   /* SRAM size (1Mbyte) */
17
_STACK_SIZE      = DEFINED(_STACK_SIZE)      ? _STACK_SIZE      : 0x00008000;   /* Stack size */
18
_VIDEO_RAM_ADDR  = DEFINED(_VIDEO_RAM_ADDR)  ? _VIDEO_RAM_ADDR  : 0x040E2000;   /* VRAM start */
19
 
20
SECTIONS
21
{
22
  . = _TEXT_START_ADDR;
23
   _ftext  =  .;
24
  .text : {
25
    *(.text)
26
    *(.text.*)
27
    *(.gnu.linkonce.t.*)
28
  }
29
   _etext  =  .;
30
  .init : { KEEP (*(.init))     } =0
31
  .fini : { KEEP (*(.fini))     } =0
32
  PROVIDE (__CTOR_LIST__ = .);
33
  PROVIDE (___CTOR_LIST__ = .);
34
  .ctors   :
35
  {
36
    /* gcc uses crtbegin.o to find the start of
37
       the constructors, so we make sure it is
38
       first.  Because this is a wildcard, it
39
       doesn't matter if the user does not
40
       actually link against crtbegin.o; the
41
       linker won't look for a file to match a
42
       wildcard.  The wildcard also means that it
43
       doesn't matter which directory crtbegin.o
44
       is in.  */
45
    KEEP (*crtbegin.o(.ctors))
46
    /* We don't want to include the .ctor section from
47
       from the crtend.o file until after the sorted ctors.
48
       The .ctor section from the crtend file contains the
49
       end of ctors marker and it must be last */
50
    KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
51
    KEEP (*(SORT(.ctors.*)))
52
    KEEP (*(.ctors))
53
  }
54
  PROVIDE (__CTOR_END__ = .);
55
  PROVIDE (___CTOR_END__ = .);
56
  PROVIDE (__DTOR_LIST__ = .);
57
  PROVIDE (___DTOR_LIST__ = .);
58
   .dtors         :
59
  {
60
    KEEP (*crtbegin.o(.dtors))
61
    KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
62
    KEEP (*(SORT(.dtors.*)))
63
    KEEP (*(.dtors))
64
  }
65
  PROVIDE (__DTOR_END__ = .);
66
  PROVIDE (___DTOR_END__ = .);
67
   . = ALIGN(4);
68
    _frodata = . ;
69
  .rodata : {
70
    *(.rodata)
71
    *(.gnu.linkonce.r.*)
72
    CONSTRUCTORS; /* Is this needed? */
73
  }
74
   _erodata = .;
75
  /* Alignments by 8 to ensure that _SDA2_BASE_ on a word boundary */
76
  /* Note that .sdata2 and .sbss2 must be contiguous */
77
  . = ALIGN(8);
78
   _ssrw = .;
79
  .sdata2 : {
80
    *(.sdata2)
81
    *(.gnu.linkonce.s2.*)
82
  }
83
  . = ALIGN(4);
84
  .sbss2 : {
85
    PROVIDE (__sbss2_start = .);
86
    *(.sbss2)
87
    *(.gnu.linkonce.sb2.*)
88
    PROVIDE (__sbss2_end = .);
89
  }
90
  . = ALIGN(8);
91
   _essrw = .;
92
   _ssrw_size = _essrw - _ssrw;
93
   PROVIDE (_SDA2_BASE_ = _ssrw + (_ssrw_size / 2 ));
94
   . = ALIGN(4);
95
   _fdata = .;
96
  .data : {
97
    *(.data)
98
    *(.gnu.linkonce.d.*)
99
    CONSTRUCTORS; /* Is this needed? */
100
  }
101
   _edata = . ;
102
   /* Added to handle pic code */
103
  .got : {
104
    *(.got)
105
  }
106
  .got1 : {
107
    *(.got1)
108
  }
109
  .got2 : {
110
    *(.got2)
111
  }
112
  /* Added by Sathya to handle C++ exceptions */
113
  .eh_frame : {
114
    *(.eh_frame)
115
  }
116
  .jcr : {
117
    *(.jcr)
118
  }
119
  .gcc_except_table : {
120
    *(.gcc_except_table)
121
  }
122
  /* Alignments by 8 to ensure that _SDA_BASE_ on a word boundary */
123
  /* Note that .sdata and .sbss must be contiguous */
124
  . = ALIGN(8);
125
   _ssro = .;
126
  .sdata : {
127
    *(.sdata)
128
    *(.gnu.linkonce.s.*)
129
  }
130
  . = ALIGN(4);
131
  .sbss : {
132
    PROVIDE (__sbss_start = .);
133
    *(.sbss)
134
    *(.gnu.linkonce.sb.*)
135
    PROVIDE (__sbss_end = .);
136
  }
137
  . = ALIGN(8);
138
   _essro = .;
139
   _ssro_size = _essro - _ssro;
140
  PROVIDE (_SDA_BASE_ = _ssro + (_ssro_size / 2 ));
141
   . = ALIGN(4);
142
   _fbss = .;
143
  .bss : {
144
    PROVIDE (__bss_start = .);
145
    *(.bss)
146
    *(.gnu.linkonce.b.*)
147
    *(COMMON)
148
    . = ALIGN(4);
149
    PROVIDE (__bss_end = .);
150
     _heap = .;
151
     _heap_start = .;
152
     . = (_VIDEO_RAM_ADDR - _STACK_SIZE - 16);
153
     _heap_end = .;
154
     _stack_end = .;
155
     . += _STACK_SIZE;
156
     . = ALIGN(8);
157
     _stack = .;
158
     _end = .;
159
     _HEAP_SIZE = _heap_end - _heap_start;      /* calculate heap size */
160
  }
161
  .tdata : {
162
    *(.tdata)
163
    *(.gnu.linkonce.td.*)
164
  }
165
  .tbss : {
166
    *(.tbss)
167
    *(.gnu.linkonce.tb.*)
168
  }
169
}

powered by: WebSVN 2.1.0

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