]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/nolibc: pass argc, argv and envp to constructors
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 28 Jul 2024 20:34:11 +0000 (22:34 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Fri, 9 Aug 2024 05:40:18 +0000 (07:40 +0200)
commit754283ce8326fdce75d589c99cc58456199c123d
treeb184a035d1892d16e378c168c80730076dd146f8
parentae1f550efc11eaf1496c431d9c6e784cb49124c5
tools/nolibc: pass argc, argv and envp to constructors

Since 2005 glibc has passed argc, argv, and envp to all constructors.
As it is cheap and easy to do so, mirror that behaviour in nolibc.
This makes it easier to migrate applications to nolibc.

Link: https://lore.kernel.org/r/20240728-nolibc-constructor-args-v1-1-36d0bf5cd4c0@weissschuh.net
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/include/nolibc/crt.h
tools/testing/selftests/nolibc/nolibc-test.c