Next: ELF Relocations, Previous: ELF Symbols, Up: Top [Contents][Index]
ELF notes provide a generic mechanism for adding metadata to ELF files
in the form of notes stored in sections. ELF notes are
implemented by the Elf_Note
struct type.
type Elf_Note = struct { Elf_Word namesz; Elf_Word descsz; Elf_Word _type; byte[namesz] name; byte[descsz] desc; };
namesz
The first namesz
bytes in name
contain a NULL-terminated
character representation of the entry’s owner or originator.
descsz
The first descsz
bytes in desc
hold the note descriptor.
The ABI places no constraints on a descriptor’s contents.
_type
This word gives the interpretation of the descriptor. Each originator controls its own types. The ABI does not define what descriptors mean.
name
Note name.
desc
Note descriptor.