merge vdso64 into vdso32 and rename it vdso. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/4dbe05cc130f6a0858d09ac72e436c373cb08b70.1642782130.git.christophe.leroy@csgroup.eu
29 lines
781 B
ArmAsm
29 lines
781 B
ArmAsm
/*
|
|
* This supplies .note.* sections to go into the PT_NOTE inside the vDSO text.
|
|
* Here we can supply some information useful to userland.
|
|
*/
|
|
|
|
#include <linux/uts.h>
|
|
#include <linux/version.h>
|
|
#include <linux/build-salt.h>
|
|
|
|
#define ASM_ELF_NOTE_BEGIN(name, flags, vendor, type) \
|
|
.section name, flags; \
|
|
.balign 4; \
|
|
.long 1f - 0f; /* name length */ \
|
|
.long 3f - 2f; /* data length */ \
|
|
.long type; /* note type */ \
|
|
0: .asciz vendor; /* vendor name */ \
|
|
1: .balign 4; \
|
|
2:
|
|
|
|
#define ASM_ELF_NOTE_END \
|
|
3: .balign 4; /* pad out section */ \
|
|
.previous
|
|
|
|
ASM_ELF_NOTE_BEGIN(".note.kernel-version", "a", UTS_SYSNAME, 0)
|
|
.long LINUX_VERSION_CODE
|
|
ASM_ELF_NOTE_END
|
|
|
|
BUILD_SALT
|