快乐虾http://blog.csdn.net/lights_joy/lights@hb165.com本文适用于ADI bf561 DSP优视BF561EVB开发板uclinux-2008r1.5-rc3(smp patch)Visual DSP++ 5.0(update 5)欢迎转载,但请保留作者信息有一个错误:[Error li1040] "./uclinux.ldf":581 Out of memory in output section 'L1_code' in processor 'p0'Total of 0xc2 word(s) were not mapped.For more details, see 'linker_log.xml' in the output directory.看看L1_code里面放了什么东西:L1_code{INPUT_SECTION_ALIGN(4)__stext_l1 = .;__CORE = 0;INPUT_SECTIONS($OBJECTS_CORE_A(L1_code) $LIBRARIES_CORE_A(L1_code))/*$VDSG*//* Text inserted between these $VDSG comments will be preserved *//*$VDSG*/INPUT_SECTIONS($OBJECTS_CORE_A(VDK_ISR_code) $LIBRARIES_CORE_A(VDK_ISR_code))INPUT_SECTIONS($OBJECTS_CORE_A(cplb) $LIBRARIES_CORE_A(cplb))INPUT_SECTIONS($OBJECTS_CORE_A(cplb_code) $LIBRARIES_CORE_A(cplb_code))INPUT_SECTIONS($OBJECTS_CORE_A(noncache_code) $LIBRARIES_CORE_A(noncache_code))INPUT_SECTIONS($OBJS_LIBS_INTERNAL_CORE_A(program))INPUT_SECTIONS($OBJS_LIBS_NOT_EXTERNAL_CORE_A(program))INPUT_SECTIONS($OBJECTS_CORE_A(program) $LIBRARIES_CORE_A(program))/*$VDSG*//* Text inserted between these $VDSG comments will be preserved *//*$VDSG*/INPUT_SECTIONS($LIBRARIES_CORE_A(.l1.text))INPUT_SECTION_ALIGN(4)__etext_l1 = (. + 3) / 4 * 4;} > MEM_A_L1_CODE把L1_code和program段的内容移到uclinux_text中:uclinux_text{__text = .;_text = .;__stext = .;INPUT_SECTIONS($OBJECTS_CORE_A(L1_code) $LIBRARIES_CORE_A(L1_code))INPUT_SECTIONS($OBJS_LIBS_INTERNAL_CORE_A(program))INPUT_SECTIONS($OBJS_LIBS_NOT_EXTERNAL_CORE_A(program))INPUT_SECTIONS($OBJECTS_CORE_A(program) $LIBRARIES_CORE_A(program))/*TEXT_TEXTSCHED_TEXTLOCK_TEXTKPROBES_TEXT*(.text.*)*(.fixup). = ALIGN(16);___start___ex_table = .;*(__ex_table)___stop___ex_table = .;*/INPUT_SECTION_ALIGN(4)__etext = .;} > MEM_UCLINUX_TEXT