Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
elfnote.h File Reference
#include <linux/elf.h>

Go to the source code of this file.

Macros

#define _ELFNOTE_PASTE(a, b)   a##b
 
#define _ELFNOTE(size, name, unique, type, desc)
 
#define ELFNOTE(size, name, type, desc)   _ELFNOTE(size, name, __LINE__, type, desc)
 
#define ELFNOTE32(name, type, desc)   ELFNOTE(32, name, type, desc)
 
#define ELFNOTE64(name, type, desc)   ELFNOTE(64, name, type, desc)
 

Macro Definition Documentation

#define _ELFNOTE (   size,
  name,
  unique,
  type,
  desc 
)
Value:
static const struct { \
struct elf##size##_note _nhdr; \
unsigned char _name[sizeof(name)] \
__attribute__((aligned(sizeof(Elf##size##_Word)))); \
typeof(desc) _desc \
__attribute__((aligned(sizeof(Elf##size##_Word)))); \
} _ELFNOTE_PASTE(_note_, unique) \
__used \
__attribute__((section(".note." name), \
aligned(sizeof(Elf##size##_Word)), \
unused)) = { \
{ \
sizeof(name), \
sizeof(desc), \
type, \
}, \
name, \
desc \
}

Definition at line 71 of file elfnote.h.

#define _ELFNOTE_PASTE (   a,
  b 
)    a##b

Definition at line 70 of file elfnote.h.

#define ELFNOTE (   size,
  name,
  type,
  desc 
)    _ELFNOTE(size, name, __LINE__, type, desc)

Definition at line 91 of file elfnote.h.

#define ELFNOTE32 (   name,
  type,
  desc 
)    ELFNOTE(32, name, type, desc)

Definition at line 94 of file elfnote.h.

#define ELFNOTE64 (   name,
  type,
  desc 
)    ELFNOTE(64, name, type, desc)

Definition at line 95 of file elfnote.h.