编译出来提示不能加载和运行到目标系统,有以下二个问题:
1、tdata段添加到cmd文件也一样提示
Description Resource Path Location Type
#10247-D creating output section ".tdata" without a SECTIONS specification IntelligenceBox C/C++ Problem
2、__c6xabi_errno_addr重定位问题
Description Resource Path Location Type
<a href="http://processors.wiki.ti.com/index.php/Compiler/diagnostic_messages/17003">#17003-D</a> errno.c relocation from function "__c6xabi_errno_addr" to symbol "__errno" overflowed; the 32-bit relocated address 0x8001b5bc is too large to encode in the 15-bit unsigned field (type = 'R_C6000_TPR_U15_B' (38), file = "C:\ti\ccsv6\tools\compiler\ti-cgt-c6000_8.1.1\lib\rts6600_elf_mt.lib<errno.obj>", offset = 0x0000000c, section = ".text:__c6xabi_errno_addr") IntelligenceBox line 87 C/C++ Problem
请问以上两个问题怎么解决?
Shine:
1.看一下#pragma里定义的段名“.tdata"是否和cmd文件里的一致?有没有少个点》、?2. 请试试升级一下编译器版本。http://processors.wiki.ti.com/index.php/Compiler_Installation_and_Selection
fei lau:
回复 Shine:
用了8.3.2的编译器也是这样的错误,跟工程勾选openmp有关系,选上support openmp3.0就会有这个warning,不选就没有,请问工程师这是为什么?