[klibc] [PATCH] update crt0.S on ppc32

Olaf Hering olh at suse.de
Mon Dec 8 20:38:00 PST 2003


 On Mon, Dec 08, H. Peter Anvin wrote:

> Olaf Hering wrote:
> >  On Sun, Dec 07, H. Peter Anvin wrote:
> > 
> > 
> >>Olaf Hering wrote:
> >>
> >>>I still dont see anything about onexit in the spec.
> >>>
> >>>http://www.linuxbase.org/spec/archLSB/PPC32/spec.html#PROCESSINITIALIZATION
> >>>
> > 
> > at least the url above mentions r7. 
> 
> It does?!

Contrary to what is stated in the Registers part of Chapter 3 of the
System V Application Binary Interface PowerPC Processor Supplement there
are no values set in registers r3, r4, r5, r6 and r7. Instead the values
specified to appear in all of those registers except r7 are placed on
the stack. The value to be placed into register r7, the termination
function pointer is not passed to the process.

I'm not a native speaker, but it sounds like the 'fini' function is
unused? 

-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG



More information about the klibc mailing list