警告如下:
"../vlfftApps/func_master_SynDetect_FreMF.c", line 322: warning #17003-D: relocation from function "funcm_SynDetect" to symbol "mytestnum" overflowed; the 29-bit relocated address 0x1fe30b03 is too large to encode in the 15-bit unsigned field (type = 'R_C6000_SBR_U15_W' (13), file = "./vlfftApps/func_master_SynDetect_FreMF.obj", offset = 0x00000cac, section = ".text")
定义变量的方式如下
#pragma DATA_SECTION(mytestnum, ".externalMEM");
volatile int mytestnum;
在../vlfftApps/func_master_SynDetect_FreMF.c中声明如下
extern volatile int mytestnum;
对于编译的东西我不懂,我想知道的是
1.为什么重定位的时候会溢出?这个溢出是指后边的地址编码不能用15bit的无符号域来表示吗?
2. file = "./vlfftApps/func_master_SynDetect_FreMF.obj", offset = 0x00000cac, section = ".text"中,这个offset指的是"./vlfftApps/func_master_SynDetect_FreMF.obj"相对于 ".text"的位置吗?
3.对于出现的这个问题,我应该怎么解决。