1*fd1feadeSChristophe Leroy/* 2*fd1feadeSChristophe Leroy * This supplies .note.* sections to go into the PT_NOTE inside the vDSO text. 3*fd1feadeSChristophe Leroy * Here we can supply some information useful to userland. 4*fd1feadeSChristophe Leroy */ 5*fd1feadeSChristophe Leroy 6*fd1feadeSChristophe Leroy#include <linux/uts.h> 7*fd1feadeSChristophe Leroy#include <linux/version.h> 8*fd1feadeSChristophe Leroy#include <linux/build-salt.h> 9*fd1feadeSChristophe Leroy 10*fd1feadeSChristophe Leroy#define ASM_ELF_NOTE_BEGIN(name, flags, vendor, type) \ 11*fd1feadeSChristophe Leroy .section name, flags; \ 12*fd1feadeSChristophe Leroy .balign 4; \ 13*fd1feadeSChristophe Leroy .long 1f - 0f; /* name length */ \ 14*fd1feadeSChristophe Leroy .long 3f - 2f; /* data length */ \ 15*fd1feadeSChristophe Leroy .long type; /* note type */ \ 16*fd1feadeSChristophe Leroy0: .asciz vendor; /* vendor name */ \ 17*fd1feadeSChristophe Leroy1: .balign 4; \ 18*fd1feadeSChristophe Leroy2: 19*fd1feadeSChristophe Leroy 20*fd1feadeSChristophe Leroy#define ASM_ELF_NOTE_END \ 21*fd1feadeSChristophe Leroy3: .balign 4; /* pad out section */ \ 22*fd1feadeSChristophe Leroy .previous 23*fd1feadeSChristophe Leroy 24*fd1feadeSChristophe Leroy ASM_ELF_NOTE_BEGIN(".note.kernel-version", "a", UTS_SYSNAME, 0) 25*fd1feadeSChristophe Leroy .long LINUX_VERSION_CODE 26*fd1feadeSChristophe Leroy ASM_ELF_NOTE_END 27*fd1feadeSChristophe Leroy 28*fd1feadeSChristophe LeroyBUILD_SALT 29