vsyscall-note.S 739 B

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