Set small data pointer on PowerPC

Joakim Tjernlund joakim.tjernlund at transmode.se
Mon Mar 19 18:03:21 UTC 2007


On Mon, 2007-03-19 at 17:31 +0000, Joseph S. Myers wrote:
> On Mon, 19 Mar 2007, Joakim Tjernlund wrote:
> 
> > On Sun, 2007-03-18 at 17:48 +0000, Joseph S. Myers wrote:
> > > On PowerPC, r13 is used for a small data pointer and needs to be set up 
> > > from _SDA_BASE_ (defined by the linker) at startup.
> > > 
> > > This is needed for the GCC testcase gcc.target/powerpc/980827-1.c to work.  
> > > This patch fixes that testcase (verified for both static and dynamic 
> > > linking).
> > 
> > I have been thinking about this myself on and off, but since nobody has
> > complained until now I didn't do anything about it.
> > 
> > Curious, do you use SDA for any real work or do you know of
> > any such use?
> 
> No, but the GCC options to do so exist so I suppose some people may be 
> using them (with libraries that set up r13).  I'm simply fixing a GCC 
> testsuite failure to get clean test results here.

OK, I have applied it to SVN HEAD

 Jocke



More information about the uClibc mailing list