This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Question regarding MIPS_GPREL_16 relocation
- From: "Mile Davidovic" <mile dot davidovic at micronasnit dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Tue, 22 Mar 2005 13:21:05 +0100
- Subject: Question regarding MIPS_GPREL_16 relocation
- Organization: MicronasNIT
- Reply-to: <mile dot davidovic at micronasnit dot com>
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?
Best regards Mile