This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linking MSMC problem

Hi,

I created a buffer and pointers in MSMC  using #pragma DATA_SECTION... and I have a problem:

If the pragma declaration is found inside the fille that uses these variables, the CCS links ok.

If I put the pragma declaration in a separated file, because I need to share this buffer with another module, the linker gives the following message:

#10281-D Section .... requires a STATIC_BASE relative.

#17003-D relocation from function .....  to symbol ..... overflowed; the 20 bit relocated address 0xf7711 is too large to encode in the 15 bit........

Please, could somebody tell me why in the first case the problem does not occurs but occurs in the second case?

Could somebody explain me how to solve the problem, if is possible with an example. (I need to define these variables in a separated file).

Thanks in advance.

 

Shmuel.