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

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