Sign in

username:

password:



Not a member?

Search code-comp



Search tips

Subscribe to code-comp



code-comp by Keywords

ARM7 | BIOS | Bug | EVM | JTAG | Linker | LOG_printf | McBSP | Profiling | Relocation | RTDX | Simulator | Target | Watch

Discussion Groups

Discussion Groups | Code-Composer | RE: Error while linking

Technical discussions about Code Composer Studio.

  

Post a new Thread

Error while linking - Pro Micro - Jun 25 3:57:00 2002



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.





(You need to be a member of code-comp -- send a blank email to code-comp-subscribe@yahoogroups.com )

RE: Error while linking - Gunasekera, Nipuna - Jun 25 13:41:00 2002

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.

_____________________________________




(You need to be a member of code-comp -- send a blank email to code-comp-subscribe@yahoogroups.com )