编译错误:
ldppc -X -N -e _sysInit -Ttext 00010000 \
dataSegPad.o romfs_image_prj.o partialImage.o ctdt.o symTbl.o \
-defsym _VX_DATA_ALIGN=1 -T D:/WindRiver/vxworks-6.6/target/h/tool/gnu/ldscripts/link.RAM -o vxWorks
ldppc: partialImage.o: the target (noOfDrives) of a R_PPC_EMB_SDA21 relocation is in the wrong output section (.bss)
ldppc: partialImage.o: the target (noOfDrives) of a R_PPC_EMB_SDA21 relocation is in the wrong output section (.bss)
ldppc: partialImage.o: the target (noOfDrives) of a R_PPC_EMB_SDA21 relocation is in the wrong output section (.bss)
ldppc: partialImage.o: the target (noOfTLs) of a R_PPC_EMB_SDA21 relocation is in the wrong output section (.bss)
ldppc: partialImage.o: the target (noOfTLs) of a R_PPC_EMB_SDA21 relocation is in the wrong output section (.bss)
ldppc: partialImage.o: the target (noOfTLs) of a R_PPC_EMB_SDA21 relocation is in the wrong output section (.bss)
ldppc: partialImage.o: the target (noOfTLs) of a R_PPC_EMB_SDA21 relocation is in the wrong output section (.bss)
ldppc: partialImage.o: the target (noOfMTDs) of a R_PPC_EMB_SDA21 relocation is in the wrong output section (.bss)
ldppc: partialImage.o: the target (noOfMTDs) of a R_PPC_EMB_SDA21 relocation is in the wrong output section (.bss)
ldppc: final link failed: Bad value
make[1]: *** [vxWorks] Error 1
rm ipcom_ipdomain
make[1]: Leaving directory `D:/WindRiver/workspace/OK/default'
D:\WindRiver\workbench-3.0\x86-win32\bin\make.exe: *** [target_vxWorks] Error 2
Build Failed in Project 'OK' (Process Exit Value was 2): 2008-05-24 21:04:36 (Elapsed Time: 00:28)
增加编译选项 -G 8 可以解决这个问题。
阅读(3326) | 评论(0) | 转发(0) |