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

Noguchi, Masato Masato.Noguchi at jp.sony.com
Thu May 24 12:40:37 EST 2007


Hi all,
Thanks for your replies.

> There are many application that depend on environment variables in
some
> way, but elfspe currently does not pass the environment down to the 
> application at all.
> Implementing the third (optional) argument to main should be easy 
> enough, and it makes it possible to extend the startup code to 
> provide 'environ' later, if necessary.

I felt too that it's reasonable passing envp. But, it will waste some
kilo-bytes of local storage. So I think it's necessary to define some
environment variables like SPE_NO_ARGS so that users can select.
BTW, is there any specification document about elfspe and/or environment
variables used by elfspe.

Anyway, I will make patches for it with some code cleanup patches which
make easier to add envp.

> >> And don't forget about auxv[] :-)

Hum, I'm not familiar with it, but I'll try.

Regards,
M.Noguchi





More information about the cbe-oss-dev mailing list