Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91781

Forum Post: "PC-relative displacement overlfow" errors

$
0
0

Hi all,

Currently I am using a very old TI DSP (C33 series) to build a firmware for our device.

I met a problem that when I tried to link a .out file.

The .cmd file looks like:

======CMD START=====

-r
-x

d:\DEV\LCDIST\DISP\PTFSYST\BOOT\sbi_timer.obj
d:\DEV\LCDIST\DISP\PTFSYST\BOOT\sbs_atInit.obj
d:\DEV\LCDIST\DISP\PTFSYST\BOOT\sbs_atPerm.obj
d:\DEV\LCDIST\DISP\PTFSYST\MEMOIRE\smf2_drv.obj
d:\DEV\LCDIST\MAIN\OBJEMU_IEC61850\dm_ITMem.obj
d:\DEV\LCDIST\DISP\PTFSYST\MEMOIRE\smf_drv.obj
-l d:\DEV\LCDIST\MVP\UCA2\OBJEMU_IEC61850\mvp_IEC61850.lib
d:\DEV\LCDIST\DISP\PTFSYST\BOOT\sbi_tmi.obj
d:\DEV\LCDIST\SUPERVISION\OBJEMU_IEC61850\dsuf_msf.obj
d:\DEV\LCDIST\SUPERVISION\OBJEMU_IEC61850\dsu_Boot.obj
d:\DEV\LCDIST\SUPERVISION\OBJEMU_IEC61850\dsu_Coproce.obj
d:\DEV\LCDIST\SUPERVISION\OBJEMU_IEC61850\dsuf.obj
...
d:\DEV\LCDIST\SUPERVISION\OBJEMU_IEC61850\dsuf_tr_cmde.obj

...

-l d:\DEV\LCDIST\MAIN\OBJEMU_IEC61850\main_IEC61850.lib

d:\DEV\LCDIST\SUPERVISION\OBJEMU_IEC61850\dsuf_mvp.obj
d:\DEV\LCDIST\SUPERVISION\OBJEMU_IEC61850\dsuf_mvp_pcf.obj
d:\DEV\LCDIST\SUPERVISION\OBJEMU_IEC61850\dsuf_mvp_str.obj

...
-l d:\DEV\LCDIST\DISP\LIV50300PL\util\util.lib
-l d:\DEV\LCDIST\lib\tex\rts.pc.lib
-l d:\DEV\LCDIST\lib\tex\mathrco2acfim.lib


SECTIONS
{
    .text:
    {
        *(.text)
    }
}

======CMD END=====

Then I adjust the location of the overflowed .obj files. If I am lucky, the overflow problem may disappear, if not, another overflow problem will appear.

After a lone adjustment work are done, the overflow problem disappeared at last, but the next time when we fix some bugs in the code or try add some new features to the firmware, we link all libraries and .obj files again, then we will encounter some other overflow problems.

The adjustment work for some .obj files need to be done again, the procedure of adjusting the location of some .obj files is like a nightmare, sometimes it makes me crazy. 

How can we avoid this from happening? Is there any way to let the overflow problem never show again?

Thank you very much!


Viewing all articles
Browse latest Browse all 91781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>