Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * This supplies .note.* sections to go into the PT_NOTE inside the vDSO text.
0003  * Here we can supply some information useful to userland.
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;      /* name length */                 \
0014     .long 3f - 2f;      /* data length */                 \
0015     .long type;     /* note type */                   \
0016 0:  .asciz vendor;      /* vendor name */                 \
0017 1:  .balign 4;                                \
0018 2:
0019 
0020 #define ASM_ELF_NOTE_END                              \
0021 3:  .balign 4;      /* pad out section */                 \
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