mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Nolibc now provides all the headers required by nolibc-test.c. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20250515-nolibc-sys-v1-9-74f82eea3b59@weissschuh.net Acked-by: Willy Tarreau <w@1wt.eu>
24 lines
422 B
C
24 lines
422 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#include "nolibc-test-linkage.h"
|
|
|
|
#include <errno.h>
|
|
|
|
void *linkage_test_errno_addr(void)
|
|
{
|
|
return &errno;
|
|
}
|
|
|
|
int linkage_test_constructor_test_value = 0;
|
|
|
|
__attribute__((constructor))
|
|
static void constructor1(void)
|
|
{
|
|
linkage_test_constructor_test_value |= 1 << 0;
|
|
}
|
|
|
|
__attribute__((constructor))
|
|
static void constructor2(void)
|
|
{
|
|
linkage_test_constructor_test_value |= 1 << 1;
|
|
}
|