Sign in

username:

password:



Not a member?

Search c6x



Search tips

Subscribe to c6x



c6x by Keywords

AD535 | BIOS | Booting | Bootloader | C621 | C6211 | C6415 | C671 | C6711 | C6711DSK | C6713 | CCS | Chassaing | COFF | DAT | DM64 | DM642 | DMA | DSK671 | DSK6711 | EDM | EDMA | EMIF | Emulator | EVM | EVM620 | FFT | FIR | GPIO | Halting | HPI | HWI | IDK | JTAG | LDB | LDH | LDW | Linker | LMS | LOG_printf | Matlab | McBSP | MEM_alloc | MIPS | PCI | PCM3003 | Pipeline | Profiling | QDM | Reset | ROM | RTDX | Sampling | SDRAM | Stack | TEB | THS1206 | TMS320C621 | TMS320C6416 | TMS320C6711 | TMS320C6713 | UART | Vector Table | XBUS | XDS560


Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | TMS320C6x | Linker error : relocation value truncated

Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).

  

Post a new Thread

Linker error : relocation value truncated - behcsiang - Jan 9 2:44:00 2003

Dear All,

I'm using CCS 2.1. / C6415.
I'm working on a video encoder. Most of my codes
are written in C language. Some in Linear Assembly.

Previously, my codes work well.. until recently when
I add more codes to the program.
When I compile, I get many linker error messages, which
look like this :

>> error: relocation value truncated at 0x5b4 in section .text, file

The help file says that this means the function call is
outside the range / far from call site.

May I know what is the solution to this type of problem ?
Generally, how can we avoid this problem in the C code ?

Thank you.
Happy New Year 2003..

--
BehCS



______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



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

Re: Linker error : relocation value truncated - Ganesh Vijayan - Jan 9 13:05:00 2003

Hi,
this is due to the huge C code which is compiled by the compiler.
To remove this error goto your project options advanced  and change the memory models to "Far calls" and data and RTS calls to "Are Far". this should solve your problem.
Hope this helps.
Ganesh
----- Original Message -----
From: ">behcsiang <b...@hotmail.com>
To: c...@yahoogroups.com
Sent: Thursday, January 09, 2003 8:14 AM
Subject: [c6x] Linker error : relocation value truncated

Dear All,
 
   I'm using CCS 2.1. / C6415.
I'm working on a video encoder. Most of my codes
are written in C language. Some in Linear Assembly.

   Previously, my codes work well.. until recently when
I add more codes to the program.
When I compile, I get many linker error messages, which
look like this :

>>  error: relocation value truncated at 0x5b4 in section .text, file

   The help file says that this means the function call is
outside the range / far from call site.

   May I know what is the solution to this type of problem ?
Generally, how can we avoid this problem in the C code ?

   Thank you.
   Happy New Year 2003..

--
BehCS
_____________________________________

 



______________________________
Start your Android Ice Cream Sandwich development on TI's AM35x Sitara ARM Cortex-A8 processor today.



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

Re: Linker error : relocation value truncated - Par Ligander - Jan 9 13:11:00 2003


You might need to use a different memory model. Se the the -ml option
in the compiler manual.

/Regards, Par Ligander

On Thu, 9 Jan 2003, behcsiang <> wrote:

> Dear All,
>
> I'm using CCS 2.1. / C6415.
> I'm working on a video encoder. Most of my codes
> are written in C language. Some in Linear Assembly.
>
> Previously, my codes work well.. until recently when
> I add more codes to the program.
> When I compile, I get many linker error messages, which
> look like this :
>
> >> error: relocation value truncated at 0x5b4 in section .text, file
>
> The help file says that this means the function call is
> outside the range / far from call site.
>
> May I know what is the solution to this type of problem ?
> Generally, how can we avoid this problem in the C code ?
>
> Thank you.
> Happy New Year 2003..
>
> --
> BehCS >
> _____________________________________


______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



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

Re: Linker error : relocation value truncated - Andrew Elder - Jan 9 13:54:00 2003


See also

Bug entry (SDSsq27328) on CCS 2.1

Sometimes this linker error is generated when everything is fine.

Andrew E.

At 06:35 PM 1/9/2003 +0530, Ganesh Vijayan wrote:
>Hi,
>this is due to the huge C code which is compiled by the compiler.
>To remove this error goto your project options advanced and change the memory
models to "Far calls" and data and RTS calls to "Are Far". this should solve
your problem.
>Hope this helps.
>Ganesh
>----- Original Message -----
>From: <mailto:>>behcsiang <>
>To: <mailto:>
>Sent: Thursday, January 09, 2003 8:14 AM
>Subject: [c6x] Linker error : relocation value truncated
>
>Dear All,
>
> I'm using CCS 2.1. / C6415.
>I'm working on a video encoder. Most of my codes
>are written in C language. Some in Linear Assembly.
>
> Previously, my codes work well.. until recently when
>I add more codes to the program.
>When I compile, I get many linker error messages, which
>look like this :
>
>>> error: relocation value truncated at 0x5b4 in section .text, file
>
> The help file says that this means the function call is
>outside the range / far from call site.
>
> May I know what is the solution to this type of problem ?
>Generally, how can we avoid this problem in the C code ?
>
> Thank you.
> Happy New Year 2003..
>
>--
>BehCS



______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



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