RVDS4.0 :armlink : ambiguous section selection . object 2440init.o contains more than one section.

来源:互联网 发布:js如何获取cookie参数 编辑:程序博客网 时间:2024/06/05 02:02

用三星的启动代码,以前在ADS2.2上正常,正在弄到RVDS4.0上就出现如下错误:

在http://blog.csdn.net/sanlinux/article/details/5447622 看到一些解释:

编译过程中遇到的问题及解决方案:


L6211E: Ambiguous section selection. Object <objname> contains more than one section. 
This can occur when using the linker option -keep on an assembler object that contains more than


one AREA. The linker needs to know which AREA you would like to keep.
To solve this, specify the names of the AREAs that you wish to keep, using more than one -keep
option, for example: -keep boot.o(vectors) -keep boot.o(resethandler)… 
Note that using assembler files with more than one AREA may give other problems elsewhere, so
this is best avoided.

然后就根据ADS2.2的使用经验:


就解决了。