rev 0.1快乐虾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)欢迎转载,但请保留作者信息有一个错误:[Warning li2060]The following input section(s) that contain program codeand/or data have not been placed into the executable for processor 'p0'as there are no relevant commands specified in the LDF:arch-kernel.dlb[early_printk.doj](bsz)arch-kernel.dlb[setup.doj](bsz)arch-mm.dlb[init.doj](bsz)………..造成这个错误的原因在于,有一些段中的数据是需要初始化为0的,gcc是以.bss做为默认的段名,而vdsp则是以bsz做为默认的名称。在uclinux的链接文件中可以发现这样的定义:.bss :{. = ALIGN(4);___bss_start = .;*(.bss .bss.*)*(COMMON). = ALIGN(4);___bss_stop = .;__end = .;}相应的在uclinux.ldf中修改为:uclinux_bss ZERO_INIT{INPUT_SECTION_ALIGN(4)___init_end = .;___bss_start = .;INPUT_SECTIONS($LIBRARIES_CORE_A(.bss .bss.*))INPUT_SECTIONS($LIBRARIES_CORE_A(bsz))INPUT_SECTIONS($LIBRARIES_CORE_A(COMMON))INPUT_SECTION_ALIGN(4). = (. + 3) / 4 * 4;___bss_stop = .;__end = .;} > MEM_UCLINUX_BSS