summaryrefslogtreecommitdiff
path: root/tools/objtool/tests/generic/fixtures/changed_data.c
blob: b52461835444ffa5fe626359b6daefa522294e67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-License-Identifier: GPL-2.0
/* Data whose value differs between the two builds. */

static const char __modinfo[]
	__attribute__((section(".modinfo"), used, aligned(1))) = "\0name=vmlinux";

#ifdef PATCHED
int klp_test_data = 2;
#else
int klp_test_data = 1;
#endif

int target(int x)
{
	return x + klp_test_data;
}