shared libstdc++

David McCullough davidm at snapgear.com
Wed Jan 18 03:55:34 UTC 2006


Jivin Paul Brook lays it down ...
> > XIP for arm uses -fPIC + -msingle-pic-base,  if your compiler doesn't
> > support -msingle-pic-base then you cannot do XIP and you should probably
> > not use -fPIC either,  unless you tell elf2flt to ignore the GOT
> 
> In my experience -fPIC -msingle-pic-base was also required for normal (run 
> from RAM) executables. It's possible this was an elf2flt bug that has 
> subsequently been fixed.
> 
> A uClinux toolchain should turn on -msingle-pic-base by default.

Ok,  I have never seen that and have built both with and without
-msingle-pic-base without any problems for a long time.  Disclaimer that
I haven't specifically tested it for quite a while either :-)

You cannot mix/match binaries though,  so either everything is built
without -msingle-pic-base,  or everything is built with
-msingle-pic-base,  no combinations of objects can work,

Cheers,
Davidm

-- 
David McCullough, davidm at cyberguard.com.au, Custom Embedded Solutions + Security
Ph:+61 734352815 Fx:+61 738913630 http://www.uCdot.org http://www.cyberguard.com



More information about the uClibc mailing list