tools/nolibc: add auxiliary vector retrieval for mips
authorWilly Tarreau <w@1wt.eu>
Tue, 10 Jan 2023 07:24:30 +0000 (08:24 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 10 Jan 2023 21:33:56 +0000 (13:33 -0800)
commitd01869cf1ee4ad6e02e853062eeced883b3b4504
treeeafb6dcc521cf6a4e66796d5c745b149ab6bb6b7
parent041fa97cb332e59311aa861fac3be178abad6a9b
tools/nolibc: add auxiliary vector retrieval for mips

In the _start block we now iterate over envp to find the auxiliary
vector after the NULL. The pointer is saved into an _auxv variable
that is marked as weak so that it's accessible from multiple units.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/include/nolibc/arch-mips.h