drm/panel: panel-himax-hx83102: support for csot-pna957qt1-1 MIPI-DSI panel
[drm/drm-misc.git] / tools / testing / selftests / nolibc / nolibc-test-linkage.c
blob5ff4c8a1db2a46cf3f8cb55bdabaa5e8819b344c
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #include "nolibc-test-linkage.h"
5 #ifndef NOLIBC
6 #include <errno.h>
7 #endif
9 void *linkage_test_errno_addr(void)
11 return &errno;
14 int linkage_test_constructor_test_value;
16 __attribute__((constructor))
17 static void constructor1(void)
19 linkage_test_constructor_test_value = 2;
22 __attribute__((constructor))
23 static void constructor2(void)
25 linkage_test_constructor_test_value *= 3;