Merge tag 'sched-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / sh / kernel / vsyscall / vsyscall-note.S
blobbb350918bebd19811685bcfb65be9f2a2da5a722
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * This supplies .note.* sections to go into the PT_NOTE inside the vDSO text.
4  * Here we can supply some information useful to userland.
5  */
7 #include <linux/uts.h>
8 #include <linux/version.h>
10 #define ASM_ELF_NOTE_BEGIN(name, flags, vendor, type)                         \
11         .section name, flags;                                                 \
12         .balign 4;                                                            \
13         .long 1f - 0f;          /* name length */                             \
14         .long 3f - 2f;          /* data length */                             \
15         .long type;             /* note type */                               \
16 0:      .asciz vendor;          /* vendor name */                             \
17 1:      .balign 4;                                                            \
20 #define ASM_ELF_NOTE_END                                                      \
21 3:      .balign 4;              /* pad out section */                         \
22         .previous
24         ASM_ELF_NOTE_BEGIN(".note.kernel-version", "a", UTS_SYSNAME, 0)
25         .long LINUX_VERSION_CODE
26         ASM_ELF_NOTE_END