Greetings!

Jinyang He <hejiny...@loongson.cn> writes:

> On 2024-07-15 03:51, Camm Maguire wrote:
>
>> Would also like to move the execve to set the personality to the top of
>> gcl_init_alloc to close the window for possible mmap layout changes.
>> Not committed yet.
> That looks better! But we had to know the "argc,argv,envp,auxv" first.
> I think maybe init_array can get it early, or others?

The apparently most direct way of doing this would be to wrap _start in
a function that checks the personality and rexecs on failure.  The
calling conventions do not appear standard on first attempt, and I
cannot find a ready example, though understand this is done in embedded
contexts routinely.

Take care,
-- 
Camm Maguire                                        c...@maguirefamily.org
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah

Reply via email to