|
DSPers, Does anyone know how to solve the error 'relocaiton value truncated at 0x14 in section .text, file', happened while linking ? Thanks in forward, TR. |
|
|
|
Relocation is what the linker does. The truncation message just means that when the values didn't fit, the extra high bits were simply truncated. Just switching on the large or far model (build options -> compiler -> advanced -> Memory Models) will resolve this if the code is written in C. If the problem instruction is in Assembly, then look at either using a different instruction with a wider field, or using a mask expression to mask off the lower bits of the symbol if you really only need the lower bits. For example, C6x's "MVK symbol, A0" will cause a relocation overflow if the symbol is at an address higher than 0xffff. If you really only need the lower 16 bits, use "MVKL symbol, A0" to tell the assembler you only want the lower 16 bits, or use MVK/MVKH/MVKL instructions to load the upper 16 bits and lower 16 bits in two instructions to give the full 32 bits of the address. Regards, Nipuna -----Original Message----- From: Pro Micro [mailto:] Sent: Monday, June 24, 2002 11:58 PM To: Subject: [code-comp] Error while linking DSPers, Does anyone know how to solve the error 'relocaiton value truncated at 0x14 in section .text, file', happened while linking ? Thanks in forward, TR. _____________________________________ |