Go to the documentation of this file. 1 #ifndef _LINUX_ELFNOTE_H
2 #define _LINUX_ELFNOTE_H
41 #define ELFNOTE_START(name, type, flags) \
42 .pushsection .note.name, flags,@note ; \
55 #define ELFNOTE(name, type, desc) \
56 ELFNOTE_START(name, type, "") \
61 #include <linux/elf.h>
70 #define _ELFNOTE_PASTE(a,b) a##b
71 #define _ELFNOTE(size, name, unique, type, desc) \
72 static const struct { \
73 struct elf##size##_note _nhdr; \
74 unsigned char _name[sizeof(name)] \
75 __attribute__((aligned(sizeof(Elf##size##_Word)))); \
77 __attribute__((aligned(sizeof(Elf##size##_Word)))); \
78 } _ELFNOTE_PASTE(_note_, unique) \
80 __attribute__((section(".note." name), \
81 aligned(sizeof(Elf##size##_Word)), \
91 #define ELFNOTE(size, name, type, desc) \
92 _ELFNOTE(size, name, __LINE__, type, desc)
94 #define ELFNOTE32(name, type, desc) ELFNOTE(32, name, type, desc)
95 #define ELFNOTE64(name, type, desc) ELFNOTE(64, name, type, desc)