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

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>
It was tested in arm, thumb1 and thumb2 modes.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/include/nolibc/arch-arm.h