Question regarding MIPS_GPREL_16 relocation

2005-03-22 Thread Mile Davidovic
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 dependin

Re: Question regarding MIPS_GPREL_16 relocation

2005-03-22 Thread Eric Christopher
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 sw

RE: Question regarding MIPS_GPREL_16 relocation

2005-03-23 Thread Mile Davidovic
Ok it could be problem with binutils/gcc. But in general this problem will occurs if size of data and bss section is big enough, so gp can not be set on proper place. If we have large project (mixed c and c++, linked with libstdc++, libsupc++) and if we compiled project source with -mlong-calls

RE: Question regarding MIPS_GPREL_16 relocation

2005-03-23 Thread Eric Christopher
> If my conclusion is correct, is it possible to rebuild this libraries with > -mlong-calls and -G0 option? Yes. You'll need to modify the multilib options. -eric

RE: Question regarding MIPS_GPREL_16 relocation

2005-03-23 Thread Mile Davidovic
. How I can proceed? Thanks a lot for Your advice. Best regards Mile -Original Message- From: Eric Christopher [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 23, 2005 5:44 PM To: [EMAIL PROTECTED] Cc: gcc@gcc.gnu.org Subject: RE: Question regarding MIPS_GPREL_16 relocation > If

RE: Question regarding MIPS_GPREL_16 relocation

2005-03-23 Thread Eric Christopher
On Wed, 2005-03-23 at 18:17 +0100, Mile Davidovic wrote: > Hello > > I will try to modify multilib options. > I have question regarding how to add my changes in gcc (see thread Mips > question) > I already sent FSF copyright agreement and I receive confirmation. So I > would like > to introduc

RE: Question regarding MIPS_GPREL_16 relocation

2005-03-29 Thread Mile Davidovic
ric Christopher Sent: Wednesday, March 23, 2005 5:44 PM To: [EMAIL PROTECTED] Cc: gcc@gcc.gnu.org Subject: RE: Question regarding MIPS_GPREL_16 relocation > If my conclusion is correct, is it possible to rebuild this libraries > with -mlong-calls and -G0 option? Yes. You'll need to modif

RE: Question regarding MIPS_GPREL_16 relocation

2005-03-29 Thread Eric Christopher
On Tue, 2005-03-29 at 11:08 +0200, Mile Davidovic wrote: > Hell all > But where I have to look? > I could easily change libstdc++v3 -> Makefile.am (AM_MAKEFLAGS) and > regenerate all but I am not shure is it good way to do it. For mips-elf you'll want to look in gcc/config/mips/t-elf. gcc/config

RE: Question regarding MIPS_GPREL_16 relocation

2005-03-30 Thread Mile Davidovic
building library fail. Thanks a lot best regards Mile -Original Message- From: Eric Christopher [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 9:02 PM To: [EMAIL PROTECTED] Cc: gcc@gcc.gnu.org Subject: RE: Question regarding MIPS_GPREL_16 relocation On Tue, 2005-03-29 at 11:08 +0200

Re: Question regarding MIPS_GPREL_16 relocation

2005-04-04 Thread Richard Sandiford
"Mile Davidovic" <[EMAIL PROTECTED]> writes: > But problem is passing G0 option, if I simple put > MULTILIB_OPTIONS = G0 mlong-calls msoft-float EL/EB mips32/mips64 > building library fail. If you add something to MULTILIB_OPTIONS, you need to add an entry to MULTILIB_DIRNAMES as well. (Sorry

RE: Question regarding MIPS_GPREL_16 relocation

2005-04-06 Thread Mile Davidovic
. I will start test this and I want to thanks again for Your efforts. Best regards Mile -Original Message- From: Richard Sandiford [mailto:[EMAIL PROTECTED] Sent: Monday, April 04, 2005 10:00 PM To: [EMAIL PROTECTED] Cc: 'Eric Christopher'; gcc@gcc.gnu.org Subject: Re: Question