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

Subversion Repositories openfire2

[/] [openfire2/] [trunk/] [sw/] [link/] [script-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/edk/gnu/microblaze/nt/lib/gcc/microblaze/3.4.1);
2
SEARCH_DIR(/cygdrive/c/edk/gnu/microblaze/nt/microblaze/lib);
3
 
4
SEARCH_DIR(/cygdrive/d/xilinx/microblaze/lib/gcc/microblaze/3.4.1);
5
SEARCH_DIR(/cygdrive/d/xilinx/microblaze/microblaze/lib);
6
 
7
_STACK_START = DEFINED(_STACK_START) ? _STACK_START : 0x040e2000; /* initial stack at end of sram (non video)*/
8
_SRAM_START  = DEFINED(_SRAM_START)  ? _SRAM_START  : 0x04000000; /* external sram starts here */
9
 
10
INPUT( -lgcc );
11
GROUP( libc.a libm.a );
12
INPUT( -lgcc );
13
 
14
ENTRY (_start)
15
MEMORY {
16
        flatmem : ORIGIN = 0x0, LENGTH = 0xfffffff              /* flat memory model */
17
}
18
 
19
SECTIONS {
20
        .text _SRAM_START : {
21
                . = ALIGN(0x4) ;
22
                _stext = . ;
23
                *(.text)
24
                *(.text.*)
25
                *(.gnu.warning)
26
                *(.stub)
27
                *(.gnu.linkonce.t*)
28
                *(.glue_7t)
29
                *(.glue_7)
30
                *(.jcr)
31
                *(.init)
32
                *(.fini)
33
 
34
                *(.rodata)
35
                *(.rodata1)
36
                *(.rodata.*)
37
 
38
                /* This is special code area at the end of the normal
39
                   text section.  It contains a small lookup table at
40
                   the start followed by the code pointed to by entries
41
                   in the lookup table.  */
42
                . = ALIGN (0x4) ;
43
                PROVIDE(__ctbp = .);
44
                *(.call_table_data)
45
                *(.call_table_text)
46
 
47
                . = ALIGN(0x4) ;
48
                _etext = . ;
49
        } > flatmem
50
        .data : {
51
                . = ALIGN(0x4) ;
52
                _sdata = . ;
53
                __data_start = . ;
54
                data_start = . ;
55
                *(.got.plt)
56
                *(.got)
57
/*              FILL(0) ;
58
                . = ALIGN(0x04) ;
59
                LONG(-1)
60
                . = ALIGN(0x04) ; */
61
                *(.rodata)
62
                *(.rodata1)
63
                *(.rodata.*)
64
                *(.gnu.linkonce.r*)
65
                *(.data)
66
                *(.data1)
67
                *(.data.*)
68
                *(.gnu.linkonce.d*)
69
                *(.data1)
70
                *(.eh_frame)
71
                *(.gcc_except_table)
72
 
73
                /* Microblaze has .sdata and .sbss (small bss).  They must
74
                   be contiguous, so please don't move any of this. JW */
75
                _ssrw = . ;
76
                *(.sdata)
77
                *(.sdata.*)
78
                __sbss_start = . ;
79
                *(.sbss)                        /* Don't move this! */
80
                __sbss_end = . ;
81
                _essrw = . ;
82
 
83
                _ssrw_size = _essrw - _ssrw;
84
                PROVIDE(_SDA_BASE_ = _ssrw + (_ssrw_size / 2));
85
 
86
                *(.gnu.linkonce.s.*)
87
                *(__libc_atexit)
88
                *(__libc_subinit)
89
                *(__libc_subfreeres)
90
                *(.note.ABI-tag)
91
 
92
                /* microblaze-specific read-only small data area
93
                   and associated locating symbols */
94
                _ssro = . ;
95
                *(.sdata2)
96
                _essro = . ;
97
                _ssro_size = _essro - _ssro;
98
                PROVIDE(_SDA2_BASE_ = _ssro + (_ssro_size / 2));
99
 
100
                . = ALIGN(4) ;
101
                __CTOR_LIST__ = .;
102
                LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
103
                *(.ctors)
104
                LONG(0)
105
                __CTOR_END__ = .;
106
                __DTOR_LIST__ = .;
107
                LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
108
                *(.dtors)
109
                LONG(0)
110
                __DTOR_END__ = .;
111
 
112
                . = ALIGN(0x4) ;
113
                _edata = . ;
114
        } > flatmem
115
        .bss : {
116
                . = ALIGN(0x4) ;
117
                _sbss = ALIGN(0x4) ;
118
                __bss_start = . ;
119
                *(.dynsbss)
120
                *(.sbss)
121
                *(.sbss.*)
122
                *(.scommon)
123
                *(.dynbss)
124
                *(.bss)
125
                *(.bss.*)
126
                *(.bss*)
127
                *(.gnu.linkonce.b*)
128
                *(COMMON)
129
                __bss_end = . ;
130
                _ebss = . ;
131
                _end = . ;
132
                end = . ;
133
        } > flatmem
134
 
135
        .junk 0 : { *(.rel*) *(.rela*) }
136
        /* Stabs debugging sections.    */
137
        .stab 0 : { *(.stab) }
138
        .stabstr 0 : { *(.stabstr) }
139
        .stab.excl 0 : { *(.stab.excl) }
140
        .stab.exclstr 0 : { *(.stab.exclstr) }
141
        .stab.index 0 : { *(.stab.index) }
142
        .stab.indexstr 0 : { *(.stab.indexstr) }
143
        .comment 0 : { *(.comment) }
144
        .debug_abbrev 0 : { *(.debug_abbrev) }
145
        .debug_info 0 : { *(.debug_info) }
146
        .debug_line 0 : { *(.debug_line) }
147
        .debug_pubnames 0 : { *(.debug_pubnames) }
148
        .debug_aranges 0 : { *(.debug_aranges) }
149
}

powered by: WebSVN 2.1.0

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