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

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