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]

Question regarding MIPS_GPREL_16 relocation


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


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