[Cbe-oss-dev] [PATCH] libspe: elfspe: set argv[argc] = NULL

Arnd Bergmann arnd at arndb.de
Thu May 24 07:53:26 EST 2007


On Wednesday 23 May 2007, Segher Boessenkool wrote:
> > | In a hosted environment, the main function receives a third 
> > argument, char *envp[],
> > | that points to a null-terminated array of pointers to char, each of 
> > which points to a string
> > | that provides information about the environment for this execution 
> > of the program
> > | (5.1.2.2.1).
> 
> And don't forget about auxv[] :-)
> 

Is there a specification that defines how this is passed, or is there
just a convention of how linux does it?

It sounds reasonable to have the option of adding aux vectors, though
I'm not entirely sure if we should just point to the data on the
PPU, or if elfspe should instead do SPU specific data.

	Arnd <><




More information about the cbe-oss-dev mailing list