1 | /* |
---|
2 | * $Id$ |
---|
3 | */ |
---|
4 | |
---|
5 | OUTPUT_FORMAT("elf32-bfin", "elf32-bfin", |
---|
6 | "elf32-bfin") |
---|
7 | |
---|
8 | OUTPUT_ARCH(bfin) |
---|
9 | ENTRY(__start) |
---|
10 | |
---|
11 | /* |
---|
12 | * Declare some sizes. |
---|
13 | */ |
---|
14 | _RamBase = DEFINED(_RamBase) ? _RamBase : 0x0; |
---|
15 | _RamSize = DEFINED(_RamSize) ? _RamSize : 0x04000000; |
---|
16 | /*_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0200000;*/ |
---|
17 | _StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000; |
---|
18 | |
---|
19 | MEMORY |
---|
20 | { |
---|
21 | sdram(rwx) : ORIGIN = 0x00001000, LENGTH = 0x03fff000 |
---|
22 | /* |
---|
23 | l1code(rwx) : ORIGIN = 0xffa08000, LENGTH = 0x00008000 |
---|
24 | l1data(rwx) : ORIGIN = 0xff804000, LENGTH = 0x00004000 |
---|
25 | */ |
---|
26 | } |
---|
27 | |
---|
28 | SECTIONS |
---|
29 | { |
---|
30 | |
---|
31 | /* |
---|
32 | .l1code : |
---|
33 | { |
---|
34 | */ |
---|
35 | /*jump.o (.text)*/ |
---|
36 | /* |
---|
37 | } > l1code |
---|
38 | */ |
---|
39 | |
---|
40 | .init : |
---|
41 | { |
---|
42 | *(.start) |
---|
43 | KEEP (*(.init)) |
---|
44 | } > sdram /*=0*/ |
---|
45 | |
---|
46 | .text : |
---|
47 | { |
---|
48 | CREATE_OBJECT_SYMBOLS |
---|
49 | *(.text) |
---|
50 | *(.rodata*) |
---|
51 | *(.gnu.linkonce.r*) |
---|
52 | |
---|
53 | /* |
---|
54 | * Special FreeBSD sysctl sections. |
---|
55 | */ |
---|
56 | . = ALIGN (16); |
---|
57 | ___start_set_sysctl_set = .; |
---|
58 | *(set_sysctl_*); |
---|
59 | ___stop_set_sysctl_set = ABSOLUTE(.); |
---|
60 | *(set_domain_*); |
---|
61 | *(set_pseudo_*); |
---|
62 | |
---|
63 | _etext = .; |
---|
64 | |
---|
65 | ___CTOR_LIST__ = .; |
---|
66 | LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2) |
---|
67 | *(.ctors) |
---|
68 | LONG(0) |
---|
69 | ___CTOR_END__ = .; |
---|
70 | ___DTOR_LIST__ = .; |
---|
71 | LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2) |
---|
72 | *(.dtors) |
---|
73 | LONG(0) |
---|
74 | ___DTOR_END__ = .; |
---|
75 | } > sdram |
---|
76 | |
---|
77 | .fini : |
---|
78 | { |
---|
79 | KEEP (*(.fini)) |
---|
80 | } > sdram /*=0*/ |
---|
81 | |
---|
82 | .data : |
---|
83 | { |
---|
84 | *(.data) |
---|
85 | *(.jcr) |
---|
86 | *(.gnu.linkonce.d*) |
---|
87 | CONSTRUCTORS |
---|
88 | _edata = .; |
---|
89 | } > sdram |
---|
90 | |
---|
91 | .eh_frame : { *(.eh_frame) } > sdram |
---|
92 | .data1 : { *(.data1) } > sdram |
---|
93 | .eh_frame : { *(.eh_frame) } > sdram |
---|
94 | .gcc_except_table : { *(.gcc_except_table*) } > sdram |
---|
95 | |
---|
96 | .rodata : |
---|
97 | { |
---|
98 | *(.rodata) |
---|
99 | *(.rodata.*) |
---|
100 | *(.gnu.linkonce.r*) |
---|
101 | } > sdram |
---|
102 | |
---|
103 | |
---|
104 | .bss : |
---|
105 | { |
---|
106 | _bss_start = .; |
---|
107 | _clear_start = .; |
---|
108 | *(.bss) |
---|
109 | *(.gnu.linkonce.b.*) |
---|
110 | *(COMMON) |
---|
111 | . = ALIGN (64); |
---|
112 | _stack_init = .; |
---|
113 | . += _StackSize; |
---|
114 | _clear_end = .; |
---|
115 | _WorkspaceBase = .; |
---|
116 | . += 512K; /* reserve some memory for workspace */ |
---|
117 | _HeapBase = .; |
---|
118 | /* |
---|
119 | . += _HeapSize; |
---|
120 | */ |
---|
121 | _end = .; |
---|
122 | __end = .; |
---|
123 | } > sdram |
---|
124 | |
---|
125 | /* Debugging stuff follows */ |
---|
126 | |
---|
127 | /* Stabs debugging sections. */ |
---|
128 | .stab 0 : { *(.stab) } |
---|
129 | .stabstr 0 : { *(.stabstr) } |
---|
130 | .stab.excl 0 : { *(.stab.excl) } |
---|
131 | .stab.exclstr 0 : { *(.stab.exclstr) } |
---|
132 | .stab.index 0 : { *(.stab.index) } |
---|
133 | .stab.indexstr 0 : { *(.stab.indexstr) } |
---|
134 | .comment 0 : { *(.comment) } |
---|
135 | /* DWARF debug sections. |
---|
136 | Symbols in the DWARF debugging sections are relative to the beginning |
---|
137 | of the section so we begin them at 0. */ |
---|
138 | /* DWARF 1 */ |
---|
139 | .debug 0 : { *(.debug) } |
---|
140 | .line 0 : { *(.line) } |
---|
141 | /* GNU DWARF 1 extensions */ |
---|
142 | .debug_srcinfo 0 : { *(.debug_srcinfo) } |
---|
143 | .debug_sfnames 0 : { *(.debug_sfnames) } |
---|
144 | /* DWARF 1.1 and DWARF 2 */ |
---|
145 | .debug_aranges 0 : { *(.debug_aranges) } |
---|
146 | .debug_pubnames 0 : { *(.debug_pubnames) } |
---|
147 | /* DWARF 2 */ |
---|
148 | .debug_info 0 : { *(.debug_info) } |
---|
149 | .debug_abbrev 0 : { *(.debug_abbrev) } |
---|
150 | .debug_line 0 : { *(.debug_line) } |
---|
151 | .debug_frame 0 : { *(.debug_frame) } |
---|
152 | .debug_str 0 : { *(.debug_str) } |
---|
153 | .debug_loc 0 : { *(.debug_loc) } |
---|
154 | .debug_macinfo 0 : { *(.debug_macinfo) } |
---|
155 | /* SGI/MIPS DWARF 2 extensions */ |
---|
156 | .debug_weaknames 0 : { *(.debug_weaknames) } |
---|
157 | .debug_funcnames 0 : { *(.debug_funcnames) } |
---|
158 | .debug_typenames 0 : { *(.debug_typenames) } |
---|
159 | .debug_varnames 0 : { *(.debug_varnames) } |
---|
160 | /*.stack 0x80000 : { _stack = .; *(.stack) }*/ |
---|
161 | /* These must appear regardless of . */ |
---|
162 | } |
---|
163 | |
---|
164 | __RamBase = _RamBase; |
---|
165 | __RamSize = _RamSize; |
---|
166 | __HeapBase = _HeapBase; |
---|
167 | /*__HeapSize = _HeapSize;*/ |
---|
168 | __WorkspaceBase = _WorkspaceBase; |
---|
169 | __edata = _edata; |
---|
170 | __etext = _etext; |
---|