1
2
3
4
5
6 #include <linux/uts.h>
7 #include <linux/version.h>
8 #include <linux/build-salt.h>
9
10 #define ASM_ELF_NOTE_BEGIN(name, flags, vendor, type) \
11 .section name, flags; \
12 .balign 4; \
13 .long 1f - 0f; \
14 .long 3f - 2f; \
15 .long type; \
16 0: .asciz vendor; \
17 1: .balign 4; \
18 2:
19
20 #define ASM_ELF_NOTE_END \
21 3: .balign 4; \
22 .previous
23
24 ASM_ELF_NOTE_BEGIN(".note.kernel-version", "a", UTS_SYSNAME, 0)
25 .long LINUX_VERSION_CODE
26 ASM_ELF_NOTE_END
27
28 BUILD_SALT