This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PPC startup code


> From: Paul Mackerras <paulus at samba dot org>
> Date: Sat, 15 Mar 2003 13:50:11 +1100 (EST)

> Maybe what we can do instead is to have the PPC __libc_start_main call
> the generic one.  Something like this:
> 
> #define __libc_start_main   __generic_libc_start_main
> #include <sysdeps/generic/libc-start.c>
> 
> __libc_start_main(...)
> {
>   /* detect static binaries, do all that stuff */
>   if (*stack_on_entry == 0) {
>     argc = *(int *)stack_on_entry;
>     argv = (char **)(stack_on_entry + 4);
>   }
>   __generic_libc_start_main(...)
> }
> 
> Thoughts?

That would make sense.  It'd remove the duplicated code without
encountering any of the problems I mentioned.

-- 
- Geoffrey Keating <geoffk at geoffk dot org>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]