tools/nolibc: add auxiliary vector retrieval for s390
authorSven Schnelle <svens@linux.ibm.com>
Tue, 10 Jan 2023 07:24:31 +0000 (08:24 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 10 Jan 2023 21:33:56 +0000 (13:33 -0800)
commit241c4b4e02f25ceab21df8a28e1ac689a477c30c
tree418c85d5df80f7c45c8e8b12871c13dc364457c2
parentd01869cf1ee4ad6e02e853062eeced883b3b4504
tools/nolibc: add auxiliary vector retrieval for s390

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: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/include/nolibc/arch-s390.h