Re: [uClinux-dev] ARM compiler option "-msingle-pic-base"

2009-02-05 Thread Jun Sun
It turns the fix is rather simple. One just needs to add "-fpic -msingle-pic-base" to the TARGET_LIBGCC2_CFLAGS in the gcc/config/arm/t-linux file. Cheers. Jun On Thu, Feb 05, 2009 at 07:49:21AM -0800, Jun Sun wrote: > > KJ, > > Did you find any solution to this problem? It seems we are hitti

Re: [uClinux-dev] ARM compiler option "-msingle-pic-base"

2009-02-05 Thread Jun Sun
KJ, Did you find any solution to this problem? It seems we are hitting the same problem now. It would be nice if you can share your findings here. It appears softfloat library is coming from libgcc. Few routines in softfloat library, including long long division, would refer to external variable

Re: [uClinux-dev] ARM compiler option "-msingle-pic-base"

2008-11-27 Thread Lin KJ
What kind of ARM uClinux toolchains do you use? And where to download? Can it be used to compile the 2.6 kernel? I use the snapgear ARM toolchains "arm-linux-tools-20070808.tar.gz" which is recommended by uClinux website. However, It only has "libgcc.a", "soft-float/libgcc.a", "be/libgcc.a" and "

Re: [uClinux-dev] ARM compiler option "-msingle-pic-base"

2008-11-27 Thread Jamie Lokier
Jun Sun wrote: > On Thu, Nov 27, 2008 at 02:24:48AM +0800, Lin KJ wrote: > > In the ARM uClinux world, it seems that the user land XIP code should be > > compiled with the "-fpic" and "-msingle-pic-base" flags. > > Why not just "-fpic" flag? > > Is it concern with the elf2flt tool? > > I think it

Re: [uClinux-dev] ARM compiler option "-msingle-pic-base"

2008-11-26 Thread Jun Sun
ts? > > Best Regards, > KJ > >   > > > - 原始信件 ---- > 寄件者: Jun Sun <[EMAIL PROTECTED]> > 收件者: uClinux development list > 寄件日期: 2008/11/27(星期四) 上午3:00:54 > 主 旨: Re: [uClinux-dev] ARM compiler option "-msingle-pic-base" > > On Thu, Nov 27,

Re: [uClinux-dev] ARM compiler option "-msingle-pic-base"

2008-11-26 Thread Lin KJ
寄件者: Jun Sun <[EMAIL PROTECTED]> 收件者: uClinux development list 寄件日期: 2008/11/27(星期四) 上午3:00:54 主 旨: Re: [uClinux-dev] ARM compiler option "-msingle-pic-base" On Thu, Nov 27, 2008 at 02:24:48AM +0800, Lin KJ wrote: > Hi all, > > In the ARM uClinux world, it seems that

Re: [uClinux-dev] ARM compiler option "-msingle-pic-base"

2008-11-26 Thread Jun Sun
On Thu, Nov 27, 2008 at 02:24:48AM +0800, Lin KJ wrote: > Hi all, > > In the ARM uClinux world, it seems that the user land XIP code should be > compiled with the "-fpic" and "-msingle-pic-base" flags. > Why not just "-fpic" flag? > Is it concern with the elf2flt tool? I think it has more to do

[uClinux-dev] ARM compiler option "-msingle-pic-base"

2008-11-26 Thread Lin KJ
Hi all, In the ARM uClinux world, it seems that the user land XIP code should be compiled with the "-fpic" and "-msingle-pic-base" flags. Why not just "-fpic" flag? Is it concern with the elf2flt tool? I can have the applications and uClibc to be compiled with "-msingle-pic-base", but how about t