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

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-i386.h