![]() |
|
||||||||||||||
| | 首页 | 新闻 | 文库 | 方案 | 技术 | 独家 | 座谈 | 下载 | 电路图 | 开发套件 | 仿真器 | 邮购 | 帮助 | VIP会员 | 芯片代购 | | ||
|
||
|
|||||
| U-boot-1.1.6-2008R1到vdsp5(bf561)的移植记录(11):bsz | |||||
作者:快乐虾 文章来源:http://blog.csdn.net/lights_joy 点击数: 更新时间:2008-4-21 ![]() |
|||||
|
在VDSP程序中,有一个叫做bsz的段,其含义是
Controls placement of zero-initialized variable data
其实就是相当于u-boot.lds.s中的.bss段,所以我们可以将这个段放在.bss段中。
.bss
{
INPUT_SECTION_ALIGN(4)
__bss_start = .;
INPUT_SECTIONS($LIBRARIES_UBOOT(.sbss) $LIBRARIES_UBOOT(.scommon))
INPUT_SECTIONS($LIBRARIES_UBOOT(.dynbss))
INPUT_SECTIONS($LIBRARIES_UBOOT(.bss))
INPUT_SECTIONS($LIBRARIES_UBOOT(bsz))
INPUT_SECTIONS($LIBRARIES_UBOOT(COMMON))
__bss_end = .;
} > MEM_SDRAM
当然,这样做会引起链接器的一个警告:
[Warning li2131] ".\u-boot.ldf":687 Input section(s) of incompatible init qualifier detected in the output section '.bss'
For more details, see 'linker_log.xml' in the output directory.
Li2131的解释是:
A section qualifier can be specified for an output section. The input sections mapped into the qualified output section should have a compatible initialization qualifier. The linker warns you if:
The section qualifier is not compatible with an initialization qualifier on an input section.
A section qualifier is on the output section and an input section without a qualifier is mapped into it.
No section qualifier is on the output section and an input section with a qualifier is mapped into it.
Section qualifiers that can be used in the .ldf file to qualify output sections are:
NO_INIT
ZERO_INIT
RUNTIME_INIT
SHT_NOBITS
引起这个警告的原因在于bsz段应该使用ZERO_INIT来进行修饰,当然,由于我们将这个段放在.bss中,在start.s中会对这个段中的数据清0,也可以达到同样的效果,所以尽可以忽略这个警告。
|
|||||
| 文章录入:admin 责任编辑:admin | |||||
| 【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 | |||||
| 最新热点 | 最新推荐 | 相关文章 | ||
| ucos-ii在嵌入式智能视觉监控 14bit 40 MSamples/s ADC应用 打造windows下的嵌入式开发工 DSP和FPGA在汽车电子中的广泛 [连载]ADSP-TSl01S系列之一 ADI ADIS1625x低功耗陀螺仪方 基于DSP的实时图像跟踪系统的 wxWidgets和MFC动态类型信息 用dll方式编译wxWidgets-2.8 Blackfin时钟控制 |
| 网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!) |
| | 本站介绍 | 合作联络 | 欢迎投稿 | 广告业务 | 网站地图 | 设为首页 | 加入收藏 | 友情链接 | 网站公告 | 联系我们 | | |||
|