This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: tic6x: relocation truncated to fit: R_C6000_PCR_S21
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Timon ter Braak <timon at terbraak dot org>
- Cc: <binutils at sourceware dot org>
- Date: Fri, 8 Feb 2013 00:18:35 +0000
- Subject: Re: tic6x: relocation truncated to fit: R_C6000_PCR_S21
- References: <5113E46B.1030407@terbraak.org>
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