uclinux-2008R1.5-RC3(bf561)到VDSP5的移植(57):bsz

rev 0.1

快乐虾

http://blog.csdn.net/lights_joy/

[email protected]

本文适用于

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 code

and/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

1 参考资料

uclinux-2008R1.5-RC3(bf561)VDSP5的移植(52)__ebss_l1(2009-1-28)

uclinux-2008R1.5-RC3(bf561)VDSP5的移植(53)ARRAY_SIZE(2009-1-30)

uclinux-2008R1.5-RC3(bf561)VDSP5的移植(54)MEM_SDRAM_BANKx(2009-2-1)

uclinux-2008R1.5-RC3(bf561)VDSP5的移植(55)CONFIG_FLAT_NODE_MEM_MAP(2009-02-03)

uclinux-2008R1.5-RC3(bf561)VDSP5的移植(56)L1 data memory overflow(2009-02-03)

你可能感兴趣的:(.net,gcc,Blog)