1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: GPL-2.0 */

#include "nolibc-test-linkage.h"

#ifndef NOLIBC
#include <errno.h>
#endif

void *linkage_test_errno_addr(void)
{
	return &errno;
}

int linkage_test_constructor_test_value;

__attribute__((constructor))
static void constructor1(void)
{
	linkage_test_constructor_test_value = 2;
}

__attribute__((constructor))
static void constructor2(void)
{
	linkage_test_constructor_test_value *= 3;
}
我想我會開始想念你 可是我剛剛才遇見了你