iPXE
Data Structures | Defines | Typedefs | Functions
elf.h File Reference

ELF headers. More...

#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  Elf32_Ehdr
 ELF header. More...
struct  Elf32_Phdr
 ELF program header. More...

Defines

#define EI_NIDENT   16
 Length of ELF identifier.
#define EI_MAG0   0
#define EI_MAG1   1
#define EI_MAG2   2
#define EI_MAG3   3
#define EI_CLASS   4
#define EI_DATA   5
#define EI_VERSION   6
#define ELFMAG0   0x7f
#define ELFMAG1   'E'
#define ELFMAG2   'L'
#define ELFMAG3   'F'
#define ELFCLASS32   1
#define ELFDATA2LSB   1
#define EV_CURRENT   1
#define PT_LOAD   1

Typedefs

typedef uint32_t Elf32_Addr
typedef uint16_t Elf32_Half
typedef uint32_t Elf32_Off
typedef int32_t Elf32_Sword
typedef uint32_t Elf32_Word

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)

Detailed Description

ELF headers.

Definition in file elf.h.


Define Documentation

#define EI_NIDENT   16

Length of ELF identifier.

Definition at line 22 of file elf.h.

#define EI_MAG0   0

Definition at line 43 of file elf.h.

Referenced by elf_load(), and elfboot_probe().

#define EI_MAG1   1

Definition at line 44 of file elf.h.

Referenced by elf_load(), and elfboot_probe().

#define EI_MAG2   2

Definition at line 45 of file elf.h.

Referenced by elf_load(), and elfboot_probe().

#define EI_MAG3   3

Definition at line 46 of file elf.h.

Referenced by elf_load(), and elfboot_probe().

#define EI_CLASS   4

Definition at line 47 of file elf.h.

Referenced by elf_load(), and elfboot_probe().

#define EI_DATA   5

Definition at line 48 of file elf.h.

Referenced by elfboot_probe().

#define EI_VERSION   6

Definition at line 49 of file elf.h.

Referenced by elfboot_probe().

#define ELFMAG0   0x7f

Definition at line 52 of file elf.h.

Referenced by elf_load(), and elfboot_probe().

#define ELFMAG1   'E'

Definition at line 53 of file elf.h.

Referenced by elf_load(), and elfboot_probe().

#define ELFMAG2   'L'

Definition at line 54 of file elf.h.

Referenced by elf_load(), and elfboot_probe().

#define ELFMAG3   'F'

Definition at line 55 of file elf.h.

Referenced by elf_load(), and elfboot_probe().

#define ELFCLASS32   1

Definition at line 58 of file elf.h.

Referenced by elfboot_probe().

#define ELFDATA2LSB   1

Definition at line 61 of file elf.h.

Referenced by elfboot_probe().

#define EV_CURRENT   1

Definition at line 64 of file elf.h.

Referenced by elfboot_probe().

#define PT_LOAD   1

Definition at line 79 of file elf.h.

Referenced by elf_segment().


Typedef Documentation

Definition at line 15 of file elf.h.

Definition at line 16 of file elf.h.

Definition at line 17 of file elf.h.

Definition at line 18 of file elf.h.

Definition at line 19 of file elf.h.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )