1 /* MANAGED-BY-SYSTEM-BUILDER */
2 /* VisualDSP++ 5.0 Update 8 */
3 /* LDF Printer version: 5.8.0.3 */
4 /* ldfgen.exe version: 5.8.0.3 */
5 /* VDSG version: 5.8.0.3 */
8 ** ADSP-BF506F linker description file generated on Jun 09, 2010 at 22:41:24.
10 ** Copyright (C) 2000-2010 Analog Devices Inc., All Rights Reserved.
12 ** This file is generated automatically based upon the options selected
13 ** in the LDF Wizard. Changes to the LDF configuration should be made by
14 ** changing the appropriate options rather than editing this file.
17 ** crt_doj: BF506F_EZKIT_POST_basiccrt.doj
18 ** processor: ADSP-BF506F
19 ** product_name: VisualDSP++ 5.0 Update 8
20 ** si_revision: automatic
21 ** default_silicon_revision_from_archdef: 0.0
22 ** using_cplusplus: true
27 ** running_from_internal_memory: true
28 ** user_heap_src_file: C:\Build_tools\ant_build\cvsStage\_5.0ExportBlackfinReGen\Examples\Blackfin\Examples\ADSP-BF506F EZ-KIT Lite\Power_On_Self_Test\BF506F_EZKIT_POST_heaptab.c
29 ** libraries_use_stdlib: true
30 ** libraries_use_fileio_libs: false
31 ** libraries_use_ieeefp_emulation_libs: false
32 ** libraries_use_eh_enabled_libs: false
34 ** system_heap_min_size: 2k
36 ** system_stack_min_size: 2k
41 ARCHITECTURE(ADSP-BF506F)
43 SEARCH_DIR($ADI_DSP/Blackfin/lib)
46 // Workarounds are enabled, exceptions are disabled.
47 #define RT_LIB_NAME(x) lib ## x ## y.dlb
48 #define RT_LIB_NAME_EH(x) lib ## x ## y.dlb
49 #define RT_LIB_NAME_MT(x) lib ## x ## y.dlb
50 #define RT_LIB_NAME_EH_MT(x) lib ## x ## y.dlb
51 #define RT_OBJ_NAME(x) x ## y.doj
52 #define RT_OBJ_NAME_MT(x) x ## mty.doj
57 /*$VDSG<insert-user-libraries-at-beginning> */
58 /* Text inserted between these $VDSG comments will be preserved */
59 /*$VDSG<insert-user-libraries-at-beginning> */
61 RT_LIB_NAME_MT(small532)
62 ,RT_LIB_NAME_MT(io532)
64 ,RT_LIB_NAME_MT(event532)
68 ,RT_LIB_NAME_EH_MT(cpp532)
69 ,RT_LIB_NAME_EH_MT(cpprt532)
70 ,RT_LIB_NAME(f64ieee532)
72 ,RT_LIB_NAME(sftflt532)
74 ,RT_OBJ_NAME_MT(idle532)
75 ,RT_LIB_NAME_MT(rt_fileio532)
77 /*$VDSG<insert-user-libraries-at-end> */
78 /* Text inserted between these $VDSG comments will be preserved */
79 /*$VDSG<insert-user-libraries-at-end> */
85 /*$VDSG<insert-user-objects-at-beginning> */
86 /* Text inserted between these $VDSG comments will be preserved */
87 /*$VDSG<insert-user-objects-at-beginning> */
89 RT_LIB_NAME(profile532)
90 , $COMMAND_LINE_OBJECTS
93 /*$VDSG<insert-user-objects-at-end> */
94 /* Text inserted between these $VDSG comments will be preserved */
95 /*$VDSG<insert-user-objects-at-end> */
97 /* , RT_OBJ_NAME(crtn506f) */
100 $OBJS_LIBS_INTERNAL =
102 /*$VDSG<insert-libraries-internal> */
103 /* Text inserted between these $VDSG comments will be preserved */
104 /*$VDSG<insert-libraries-internal> */
106 $OBJECTS{prefersMem("internal")}, $LIBRARIES{prefersMem("internal")}
108 /*$VDSG<insert-libraries-internal-end> */
109 /* Text inserted between these $VDSG comments will be preserved */
110 /*$VDSG<insert-libraries-internal-end> */
114 $OBJS_LIBS_NOT_EXTERNAL =
116 /*$VDSG<insert-libraries-not-external> */
117 /* Text inserted between these $VDSG comments will be preserved */
118 /*$VDSG<insert-libraries-not-external> */
120 $OBJECTS{!prefersMem("external")}, $LIBRARIES{!prefersMem("external")}
122 /*$VDSG<insert-libraries-not-external-end> */
123 /* Text inserted between these $VDSG comments will be preserved */
124 /*$VDSG<insert-libraries-not-external-end> */
128 $OBJS_LIBS_WITH_AUTO_BREAKPOINTS =
130 /*$VDSG<insert-libraries-with-auto-breakpoints> */
131 /* Text inserted between these $VDSG comments will be preserved */
132 /*$VDSG<insert-libraries-with-auto-breakpoints> */
134 $OBJECTS { FuncName("_main") ||
135 FuncName("___lib_prog_term") ||
136 FuncName("__primIO") ||
137 FuncName("__ov_start") ||
138 FuncName("__ov_end") ||
139 FuncName("__dbg_assert") ||
140 FuncName("__unknown_exception_occurred") ||
141 FuncName("_cplb_init") ||
142 FuncName("__KernelPanic") },
143 $LIBRARIES { FuncName("_main") ||
144 FuncName("___lib_prog_term") ||
145 FuncName("__primIO") ||
146 FuncName("__ov_start") ||
147 FuncName("__ov_end") ||
148 FuncName("__dbg_assert") ||
149 FuncName("__unknown_exception_occurred") ||
150 FuncName("_cplb_init") ||
151 FuncName("__KernelPanic") }
153 /*$VDSG<insert-libraries-with-auto-breakpoints-end> */
154 /* Text inserted between these $VDSG comments will be preserved */
155 /*$VDSG<insert-libraries-with-auto-breakpoints-end> */
159 $OBJS_LIBS_WITHOUT_AUTO_BREAKPOINTS =
161 /*$VDSG<insert-libraries-without-auto-breakpoints> */
162 /* Text inserted between these $VDSG comments will be preserved */
163 /*$VDSG<insert-libraries-without-auto-breakpoints> */
165 $OBJECTS { !FuncName("_main") &&
166 !FuncName("___lib_prog_term") &&
167 !FuncName("__primIO") &&
168 !FuncName("__ov_start") &&
169 !FuncName("__ov_end") &&
170 !FuncName("__dbg_assert") &&
171 !FuncName("__unknown_exception_occurred") &&
172 !FuncName("_cplb_init") &&
173 !FuncName("__KernelPanic") },
174 $LIBRARIES { !FuncName("_main") &&
175 !FuncName("___lib_prog_term") &&
176 !FuncName("__primIO") &&
177 !FuncName("__ov_start") &&
178 !FuncName("__ov_end") &&
179 !FuncName("__dbg_assert") &&
180 !FuncName("__unknown_exception_occurred") &&
181 !FuncName("_cplb_init") &&
182 !FuncName("__KernelPanic") }
184 /*$VDSG<insert-libraries-without-auto-breakpoints-end> */
185 /* Text inserted between these $VDSG comments will be preserved */
186 /*$VDSG<insert-libraries-without-auto-breakpoints-end> */
191 /*$VDSG<insert-user-macros> */
192 /* Text inserted between these $VDSG comments will be preserved */
193 /*$VDSG<insert-user-macros> */
196 /*$VDSG<customize-async-macros> */
197 /* This code is preserved if the LDF is re-generated. */
200 #define ASYNC0_MEMTYPE RAM
201 #define ASYNC1_MEMTYPE RAM
202 #define ASYNC2_MEMTYPE RAM
203 #define ASYNC3_MEMTYPE RAM
206 /*$VDSG<customize-async-macros> */
212 ** ADSP-BF506F MEMORY MAP.
214 ** The known memory spaces are as follows:
216 ** Internal (core-accessible) memory map:
217 ** =========================================
218 ** 0xFFE00000 - 0xFFFFFFFF Core MMR registers (2MB)
219 ** 0xFFC00000 - 0xFFDFFFFF System MMR registers (2MB)
220 ** 0xFFB01000 - 0xFFBFFFFF Reserved
221 ** 0xFFB00000 - 0xFFB00FFF Scratch SRAM (4K)
222 ** 0xFFA08000 - 0xFFAFFFFF Reserved
223 ** 0xFFA04000 - 0xFFA07FFF L1 instruction SRAM/CACHE (16K)
224 ** 0xFFA00000 - 0xFFA03FFF L1 instruction Bank A SRAM (16K)
225 ** 0xFF808000 - 0xFF9FFFFF Reserved
226 ** 0xFF804000 - 0xFF807FFF L1 Data Bank A SRAM/CACHE (16K)
227 ** 0xFF800000 - 0XFF803FFF L1 Data Bank A SRAM (16K)
228 ** 0xEF001000 - 0xFF7FFFFF Reserved
230 ** External (interface-accessible) memory map:
231 ** =============================================
232 ** 0xEF000000 - 0xEF000FFF Boot ROM (4K)
233 ** 0x20400000 - 0xEEFFFFFF Reserved
234 ** 0x20000000 - 0x203FFFFF Sync Flash (32M Bits)
235 ** 0x00000000 - 0x1FFFFFFF Reserved
238 ** 0xFF807FEF-0xFF807FFF Required by boot-loader.
241 MEM_L1_SCRATCH { TYPE(RAM) START(0xFFB00000) END(0xFFB00FFF) WIDTH(8) }
242 /* MEM_L1_CODE_CACHE { TYPE(RAM) START(0xFFA08000) END(0xFFA07FFF) TYPE(RAM) WIDTH(8) } */
243 /* MEM_L1_CODE { TYPE(RAM) START(0xFFA00000) END(0xFFA03FFF) TYPE(RAM) WIDTH(8) } */
244 MEM_L1_CODE { TYPE(RAM) START(0xFFA00000) END(0xFFA07FFF) WIDTH(8) }
245 MEM_ARGV { TYPE(RAM) START(0xFF800000) END(0xFF8000FF) WIDTH(8) }
246 /* MEM_L1_DATA_A_CACHE { TYPE(RAM) START(0xFF804000) END(0xFF807FFF) TYPE(RAM) WIDTH(8) } */
247 /* MEM_L1_DATA_A { TYPE(RAM) START(0xFF800000) END(0xFF803FFF) TYPE(RAM) WIDTH(8) } */
248 MEM_L1_DATA_A { TYPE(RAM) START(0xFF800100) END(0xFF807FFF) WIDTH(8) }
249 MEM_FLASH_BOOT { TYPE(ASYNC0_MEMTYPE) START(0x20000000) END(0x2001FFFF) WIDTH(8) }
250 MEM_FLASH { TYPE(ASYNC0_MEMTYPE) START(0x20020000) END(0x203FFFFF) WIDTH(8) }
252 /*$VDSG<insert-new-memory-segments> */
253 /* Text inserted between these $VDSG comments will be preserved */
254 /*$VDSG<insert-new-memory-segments> */
260 OUTPUT($COMMAND_LINE_OUTPUT_FILE)
261 RESOLVE(start, 0xFFA00000)
262 RESOLVE(___argv_string, 0xFF800000)
265 /*$VDSG<insert-user-ldf-commands> */
266 /* Text inserted between these $VDSG comments will be preserved */
267 /*$VDSG<insert-user-ldf-commands> */
271 /* Workaround for hardware errata 05-00-0189 and 05-00-0310 -
272 ** "Speculative (and fetches made at boundary of reserved memory
273 ** space) for instruction or data fetches may cause false
274 ** protection exceptions" and "False hardware errors caused by
275 ** fetches at the boundary of reserved memory ".
277 ** Done by avoiding use of 76 bytes from at the end of blocks
278 ** that are adjacent to reserved memory. Workaround is enabled
279 ** for appropriate silicon revisions (-si-revision switch).
281 RESERVE(___wab0=MEMORY_END(MEM_L1_SCRATCH) - 75, ___l0 = 76)
282 /* RESERVE(___wab1=MEMORY_END(MEM_L1_CODE_CACHE) - 75, ___l1 = 76) */
283 RESERVE(___wab2=MEMORY_END(MEM_L1_CODE) - 75, ___l2 = 76)
284 /* RESERVE(___wab5=MEMORY_END(MEM_L1_DATA_A_CACHE) - 75, ___l5 = 76) */
285 RESERVE(___wab4=MEMORY_END(MEM_L1_DATA_A) - 75, ___l4 = 76)
286 RESERVE(___wab5=MEMORY_END(MEM_FLASH) - 75, ___l5 = 76)
288 /*$VDSG<insert-new-sections-at-the-start> */
289 /* Text inserted between these $VDSG comments will be preserved */
290 /*$VDSG<insert-new-sections-at-the-start> */
294 INPUT_SECTION_ALIGN(4)
296 /*$VDSG<insert-input-sections-at-the-start-of-scratchpad> */
297 /* Text inserted between these $VDSG comments will be preserved */
298 /*$VDSG<insert-input-sections-at-the-start-of-scratchpad> */
300 INPUT_SECTIONS($OBJECTS(L1_scratchpad) $LIBRARIES(L1_scratchpad))
302 /*$VDSG<insert-input-sections-at-the-end-of-scratchpad> */
303 /* Text inserted between these $VDSG comments will be preserved */
304 /*$VDSG<insert-input-sections-at-the-end-of-scratchpad> */
310 INPUT_SECTION_ALIGN(4)
311 ___l1_code_cache = 0;
312 INPUT_SECTIONS($OBJS_LIBS_WITH_AUTO_BREAKPOINTS(program))
313 INPUT_SECTIONS($OBJECTS(L1_code) $LIBRARIES(L1_code))
315 /*$VDSG<insert-input-sections-at-the-start-of-l1_code> */
316 /* Text inserted between these $VDSG comments will be preserved */
317 /*$VDSG<insert-input-sections-at-the-start-of-l1_code> */
319 INPUT_SECTIONS($OBJECTS(cplb_code) $LIBRARIES(cplb_code))
320 INPUT_SECTIONS($OBJECTS(cplb) $LIBRARIES(cplb))
321 INPUT_SECTIONS($OBJECTS(noncache_code) $LIBRARIES(noncache_code))
322 INPUT_SECTIONS($OBJS_LIBS_INTERNAL(program))
323 INPUT_SECTIONS($OBJS_LIBS_NOT_EXTERNAL(program))
324 INPUT_SECTIONS($OBJECTS(program) $LIBRARIES(program))
326 /*$VDSG<insert-input-sections-at-the-end-of-l1_code> */
327 /* Text inserted between these $VDSG comments will be preserved */
328 /*$VDSG<insert-input-sections-at-the-end-of-l1_code> */
334 INPUT_SECTION_ALIGN(4)
337 /*$VDSG<insert-input-sections-at-the-start-of-L1_data_a_tables> */
338 /* Text inserted between these $VDSG comments will be preserved */
339 /*$VDSG<insert-input-sections-at-the-start-of-L1_data_a_tables> */
341 INPUT_SECTIONS($OBJECTS(ctor) $LIBRARIES(ctor))
342 INPUT_SECTIONS($OBJECTS(ctorl) $LIBRARIES(ctorl))
343 INPUT_SECTIONS($OBJECTS(.gdt) $LIBRARIES(.gdt))
344 INPUT_SECTIONS($OBJECTS(.gdtl) $LIBRARIES(.gdtl))
346 /*$VDSG<insert-input-sections-at-the-end-of-L1_data_a_tables> */
347 /* Text inserted between these $VDSG comments will be preserved */
348 /*$VDSG<insert-input-sections-at-the-end-of-L1_data_a_tables> */
354 INPUT_SECTION_ALIGN(4)
355 ___l1_data_cache_a = 0;
356 INPUT_SECTIONS($OBJECTS(L1_data_a) $LIBRARIES(L1_data_a))
357 INPUT_SECTIONS($OBJECTS(L1_data) $LIBRARIES(L1_data))
359 /*$VDSG<insert-input-sections-at-the-start-of-L1_data_a_1> */
360 /* Text inserted between these $VDSG comments will be preserved */
361 /*$VDSG<insert-input-sections-at-the-start-of-L1_data_a_1> */
363 RESERVE(heaps_and_stack_in_L1_data_a, heaps_and_stack_in_L1_data_a_length = 4096,4)
366 L1_data_a_bsz ZERO_INIT
368 INPUT_SECTION_ALIGN(4)
370 /*$VDSG<insert-input-sections-at-the-start-of-L1_data_a_bsz> */
371 /* Text inserted between these $VDSG comments will be preserved */
372 /*$VDSG<insert-input-sections-at-the-start-of-L1_data_a_bsz> */
374 INPUT_SECTIONS( $OBJECTS(L1_bsz) $LIBRARIES(L1_bsz))
376 /*$VDSG<insert-input-sections-at-the-end-of-L1_data_a_bsz> */
377 /* Text inserted between these $VDSG comments will be preserved */
378 /*$VDSG<insert-input-sections-at-the-end-of-L1_data_a_bsz> */
382 bsz_L1_data_a ZERO_INIT
384 INPUT_SECTION_ALIGN(4)
386 /*$VDSG<insert-input-sections-at-the-start-of-bsz_L1_data_a> */
387 /* Text inserted between these $VDSG comments will be preserved */
388 /*$VDSG<insert-input-sections-at-the-start-of-bsz_L1_data_a> */
390 INPUT_SECTIONS($OBJS_LIBS_INTERNAL(bsz))
391 INPUT_SECTIONS($OBJS_LIBS_NOT_EXTERNAL(bsz))
392 INPUT_SECTIONS($OBJECTS(bsz) $LIBRARIES(bsz))
394 /*$VDSG<insert-input-sections-at-the-end-of-bsz_L1_data_a> */
395 /* Text inserted between these $VDSG comments will be preserved */
396 /*$VDSG<insert-input-sections-at-the-end-of-bsz_L1_data_a> */
402 INPUT_SECTION_ALIGN(4)
404 /*$VDSG<insert-input-sections-at-the-start-of-L1_data_a> */
405 /* Text inserted between these $VDSG comments will be preserved */
406 /*$VDSG<insert-input-sections-at-the-start-of-L1_data_a> */
408 INPUT_SECTIONS($OBJECTS(voldata) $LIBRARIES(voldata))
409 INPUT_SECTIONS($OBJS_LIBS_INTERNAL(data1))
410 INPUT_SECTIONS($OBJS_LIBS_NOT_EXTERNAL(data1))
411 INPUT_SECTIONS($OBJECTS(data1) $LIBRARIES(data1))
412 INPUT_SECTIONS($OBJECTS(constdata) $LIBRARIES(constdata))
413 INPUT_SECTIONS($OBJECTS(cplb_data) $LIBRARIES(cplb_data))
415 /*$VDSG<insert-input-sections-at-the-end-of-L1_data_a> */
416 /* Text inserted between these $VDSG comments will be preserved */
417 /*$VDSG<insert-input-sections-at-the-end-of-L1_data_a> */
423 INPUT_SECTION_ALIGN(4)
425 /*$VDSG<insert-input-sections-at-the-start-of-L1_data_a_2> */
426 /* Text inserted between these $VDSG comments will be preserved */
427 /*$VDSG<insert-input-sections-at-the-start-of-L1_data_a_2> */
429 INPUT_SECTIONS($OBJECTS(vtbl) $LIBRARIES(vtbl))
430 INPUT_SECTIONS($OBJECTS(.frt) $LIBRARIES(.frt))
431 INPUT_SECTIONS($OBJECTS(.rtti) $LIBRARIES(.rtti))
432 INPUT_SECTIONS($OBJECTS(.edt) $LIBRARIES(.edt))
433 INPUT_SECTIONS($OBJECTS(.cht) $LIBRARIES(.cht))
435 /*$VDSG<insert-input-sections-at-the-end-of-L1_data_a_2> */
436 /* Text inserted between these $VDSG comments will be preserved */
437 /*$VDSG<insert-input-sections-at-the-end-of-L1_data_a_2> */
443 INPUT_SECTION_ALIGN(4)
444 RESERVE_EXPAND(heaps_and_stack_in_L1_data_a, heaps_and_stack_in_L1_data_a_length , 0, 4)
445 ldf_stack_space = heaps_and_stack_in_L1_data_a;
446 ldf_stack_end = (ldf_stack_space + (((heaps_and_stack_in_L1_data_a_length * 2048) / 4096) - 4)) & 0xfffffffc;
447 ldf_heap_space = ldf_stack_end + 4;
448 ldf_heap_end = (ldf_heap_space + (((heaps_and_stack_in_L1_data_a_length * 2048) / 4096) - 4)) & 0xfffffffc;
449 ldf_heap_length = ldf_heap_end - ldf_heap_space;
454 INPUT_SECTION_ALIGN(4)
456 /*$VDSG<insert-input-sections-at-the-start-of-FLASH_code> */
457 /* Text inserted between these $VDSG comments will be preserved */
458 /*$VDSG<insert-input-sections-at-the-start-of-FLASH_code> */
460 INPUT_SECTIONS($OBJECTS(FLASH_code) $LIBRARIES(FLASH_code))
461 INPUT_SECTIONS($OBJS_LIBS_WITHOUT_AUTO_BREAKPOINTS(program))
463 /*$VDSG<insert-input-sections-at-the-end-of-FLASH_code> */
464 /* Text inserted between these $VDSG comments will be preserved */
465 /*$VDSG<insert-input-sections-at-the-end-of-FLASH_code> */
467 } > MEM_L1_CODE /* MEM_FLASH */
471 INPUT_SECTION_ALIGN(4)
473 /*$VDSG<insert-input-sections-at-the-start-of-FLASH_constdata> */
474 /* Text inserted between these $VDSG comments will be preserved */
475 /*$VDSG<insert-input-sections-at-the-start-of-FLASH_constdata> */
477 INPUT_SECTIONS($OBJECTS(FLASH_data) $LIBRARIES(FLASH_data))
478 INPUT_SECTIONS($OBJECTS(constdata) $LIBRARIES(constdata))
479 INPUT_SECTIONS($OBJECTS(cplb_data) $LIBRARIES(cplb_data))
480 INPUT_SECTIONS($OBJECTS(vtbl) $LIBRARIES(vtbl))
481 INPUT_SECTIONS($OBJECTS(.frt) $LIBRARIES(.frt))
482 INPUT_SECTIONS($OBJECTS(.rtti) $LIBRARIES(.rtti))
483 INPUT_SECTIONS($OBJECTS(.edt) $LIBRARIES(.edt))
484 INPUT_SECTIONS($OBJECTS(.cht) $LIBRARIES(.cht))
486 /*$VDSG<insert-input-sections-at-the-end-of-FLASH_constdata> */
487 /* Text inserted between these $VDSG comments will be preserved */
488 /*$VDSG<insert-input-sections-at-the-end-of-FLASH_constdata> */
490 } > MEM_L1_CODE /* MEM_FLASH */
493 /*$VDSG<insert-new-sections-at-the-end> */
494 /* Text inserted between these $VDSG comments will be preserved */
495 /*$VDSG<insert-new-sections-at-the-end> */