This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: Question regarding MIPS_GPREL_16 relocation


On Tue, 2005-03-22 at 13:21 +0100, Mile Davidovic wrote:
> Hello all
> I am using gcc for MIPS ( 3.3.x, target mips-elf).
> I had problem during linking, (MIPS_GPREL_16 relocation truncated to fit
> error occurs).
> I set value of gp registers to appropriate value and used -mlong-calls and
> -G0 switch to 
> prevent this problem. 
> 
> However problem arise again depending on section size (bss, sbss, data,
> sdata). Every time
> that heppends I have to move gp again. I believe that this reloation is used
> in gcc 
> libraries (libgcc, stdc++, ...). Is that any chance these libraries to be
> build without
> mention relocation? 

You could also try upgrading your gcc and binutils. Without a testcase
I'm not certain what's happening, but we've fixed a number of problems
with such over the years.

-eric


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