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

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

RVDS4.0 :armlink : ambiguous section selection . object 2440init.o contains more than one section._第1张图片

在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的使用经验:

RVDS4.0 :armlink : ambiguous section selection . object 2440init.o contains more than one section._第2张图片

就解决了。

你可能感兴趣的:(RVDS4.0 :armlink : ambiguous section selection . object 2440init.o contains more than one section.)