tic6x: relocation truncated to fit: R_C6000_PCR_S21

Joseph S. Myers joseph@codesourcery.com
Fri Feb 8 00:18:00 GMT 2013


On Thu, 7 Feb 2013, Timon ter Braak wrote:

> Hi,
> 
> I have a toolchain for the TI C64x DSP with binutils 2.23.1. It
> generates valid executables for 'toy examples', but for a larger (but
> still reasonable) code size, I get relocation problems:
> 
> /target/lib/gcc/c6x-uclinux/4.7.2/crtbegin.o:(.fini+0x0): relocation
> truncated to fit: R_C6000_PCR_S21 against `.text'

That sounds like an issue with the linker (maybe default linker scripts) 
placing sections too far apart; reasonable code size examples should not 
get out of range for this relocation.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Binutils mailing list