This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tic6x: relocation truncated to fit: R_C6000_PCR_S21


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]