gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/2] Add LoongArch64 basic support


From: Camm Maguire
Subject: Re: [PATCH 2/2] Add LoongArch64 basic support
Date: Mon, 15 Jul 2024 12:23:55 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Greetings!

Jinyang He <hejinyang@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                                        camm@maguirefamily.org
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah



reply via email to

[Prev in Thread] Current Thread [Next in Thread]