Next: , Previous: , Up: Top   [Contents][Index]


11 ELF Notes

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.

11.1 Overview

type Elf_Note =
  struct
  {
    Elf_Word namesz;
    Elf_Word descsz;
    Elf_Word _type;
    byte[namesz] name;
    byte[descsz] desc;
  };

11.2 Fields

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.