0001
0002
0003
0004
0005
0006 #include <linux/uts.h>
0007 #include <linux/version.h>
0008 #include <linux/build-salt.h>
0009
0010 #define ASM_ELF_NOTE_BEGIN(name, flags, vendor, type) \
0011 .section name, flags; \
0012 .balign 4; \
0013 .long 1f - 0f; \
0014 .long 3f - 2f; \
0015 .long type; \
0016 0: .asciz vendor; \
0017 1: .balign 4; \
0018 2:
0019
0020 #define ASM_ELF_NOTE_END \
0021 3: .balign 4; \
0022 .previous
0023
0024 ASM_ELF_NOTE_BEGIN(".note.kernel-version", "a", UTS_SYSNAME, 0)
0025 .long LINUX_VERSION_CODE
0026 ASM_ELF_NOTE_END
0027
0028 BUILD_SALT