This is the mail archive of the libc-alpha@sourceware.org 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: [patch] Adjust AT_EXECFN on explicit loader invocation


On Mon, Nov 18, 2013 at 01:25:09PM -0800, Paul Pluzhnikov wrote:
> On Mon, Nov 18, 2013 at 8:19 AM, OndÅej BÃlka <neleai@seznam.cz> wrote:
> 
> > This is quite confusing when stack grows up, a this part will skip a
> > AT_NULL auxval
> 
> I don't believe that's true. AFAIU, there will still be a NULL entry
> between the last envp and the auxv[].
>
Then this makes less sense as AT_NULL is last entry a test would fail
without reading auxval. 

Is there any reason not use getauxval(AT_EXECFN) for test?

 
> However, I don't have any machines that use strack grows up, so I can't test it.
> 
> > and what happens if there is no AT_EXECFN?
> 
> The test would fail. Are there any kernels on which glibc works, which
> have aux vector, and which do not put AT_EXECFN into it?
> 
> Thanks,
> -- 
> Paul Pluzhnikov


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