TI中文支持网
TI专业的中文技术问题搜集分享网站

编译工程突然出现的大量的warning,请问专家这是啥意思?

     应该是在我修改了某个变量的存储段以后,我的工程就突然出现的大量waring,但是可以编译成功,大致有两类waring,请问是什么原因引起的。

warning: Section ".bss" requires a STATIC_BASE relative relocation, but is
   located at 0x008278b8, which is probably out of range of the STATIC_BASE.
   STATIC_BASE is located at 0x00800200. Might be required to correct
   placement of ".bss" so it lies within 0x8000 of the STATIC_BASE.

"D:\ccs\pdk_C6678_1_0_0_9_beta2\packages\ti/csl/csl_edma3Aux.h", line 162: warning:   relocation from function "Edma3LL2toDDR3set" to symbol "hChannel"
   overflowed; the 16-bit relocated address 0x9dc2 is too large to encode in
   the 15-bit unsigned field (type = 'R_C6000_SBR_U15_W' (13), file =
   "./EDMAset.obj", offset = 0x00000580, section = ".text")

  "src/intc/_csl_intcCombEventDispatcher.c", line 169 (approximate): warning:   relocation from function "_CSL_intcEvent3Dispatcher" to symbol
   "_CSL_intcEventOffsetMap" overflowed; the 16-bit relocated address 0x9dc8 is
   too large to encode in the 15-bit unsigned field (type = 'R_C6000_SBR_U15_W'
   (13), file =
   "D:\ccs\pdk_C6678_1_0_0_9_beta2\packages\ti\csl\lib\ti.csl.intc.ae66<_csl_in
   tcCombEventDispatcher.oe66>", offset = 0x00000128, section =
   ".text:csl_section:intc:_CSL_intcEvent3Dispatcher")
  warning: output file "PROCESS.out" cannot be loaded and run on a
   target system

Phyllis Xu:

您好!

这是CCS在link过程遇到的警告。我看到warning信息中提到,定义的段(例如.bss)没有放到STATIC_BASE的memory中,即没有放到起始地址为0x00800200的memory中。

我建议您可以把.cmd文件发给我check一下。

非常感谢!

Richard Zhang:

回复 Phyllis Xu:

你好!CMD内容如下-c-heap  0x2000-stack 0x2000

MEMORY{ VECTORS: origin=0x00800000 length=0x00000400 LL2MEM: origin=0x00800400 length=0x0007FC00 MSMCRAM: origin=0x0C000000 length=0x00400000 DDR3RAM: origin=0x80000000 length=0x10000000 DDR32RAM: origin=0x90000000 length=0x10000000}

SECTIONS{ .csl_vect  > VECTORS .text      > LL2MEM .data      > LL2MEM .fasttext  > LL2MEM .cinit     > LL2MEM .bss       > LL2MEM .const     > LL2MEM .far       > LL2MEM .switch    > LL2MEM .sysmem    > LL2MEM .cio       > LL2MEM .heap      > LL2MEM .fardata   > LL2MEM .neardata  > LL2MEM .rodata    > LL2MEM .INRAM     > LL2MEM .MSRAM     > MSMCRAM .EXRAM     > DDR3RAM .2EXRAM    > DDR32RAM .stack     > LL2MEM}现在程序链接的时候还是会有warning,如图。

out文件测试软件仿真无问题,硬件执行是否会像warning说的不能执行呢?

 

赞(0)
未经允许不得转载:TI中文支持网 » 编译工程突然出现的大量的warning,请问专家这是啥意思?
分享到: 更多 (0)