tools/nolibc: add limits.h shim header

limits.h is a widely used standard header.  Missing it from nolibc requires
adoption effort to port applications.

Add a shim header which includes the global nolibc.h header.
It makes all nolibc symbols available.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Willy Tarreau <w@1wt.eu>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Acked-by: Willy Tarreau <w@1wt.eu>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/all/20250226-parse_vdso-nolibc-v2-9-28e14e031ed8@linutronix.de
This commit is contained in:
Thomas Weißschuh
2025-02-26 12:44:48 +01:00
committed by Thomas Gleixner
parent 1a59f5d315
commit 5caaa0aa7c
2 changed files with 8 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ all_files := \
crt.h \
ctype.h \
errno.h \
limits.h \
nolibc.h \
signal.h \
stackprotector.h \

View File

@@ -0,0 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1 OR MIT */
/*
* Shim limits.h header for NOLIBC.
* Copyright (C) 2025 Thomas Weißschuh <thomas.weissschuh@linutronix.de>
*/
#include "nolibc.h"