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

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 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)

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

嵌云阁主

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值