Set small data pointer on PowerPC
Joseph S. Myers
joseph at codesourcery.com
Mon Mar 19 17:31:17 UTC 2007
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.
--
Joseph S. Myers
joseph at codesourcery.com
More information about the uClibc
mailing list