iPXE
Data Structures | Macros | 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...
 

Macros

#define EI_NIDENT   16
 Length of ELF identifier. More...
 
#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.

Macro Definition Documentation

◆ EI_NIDENT

#define EI_NIDENT   16

Length of ELF identifier.

Definition at line 22 of file elf.h.

◆ EI_MAG0

#define EI_MAG0   0

Definition at line 43 of file elf.h.

◆ EI_MAG1

#define EI_MAG1   1

Definition at line 44 of file elf.h.

◆ EI_MAG2

#define EI_MAG2   2

Definition at line 45 of file elf.h.

◆ EI_MAG3

#define EI_MAG3   3

Definition at line 46 of file elf.h.

◆ EI_CLASS

#define EI_CLASS   4

Definition at line 47 of file elf.h.

◆ EI_DATA

#define EI_DATA   5

Definition at line 48 of file elf.h.

◆ EI_VERSION

#define EI_VERSION   6

Definition at line 49 of file elf.h.

◆ ELFMAG0

#define ELFMAG0   0x7f

Definition at line 52 of file elf.h.

◆ ELFMAG1

#define ELFMAG1   'E'

Definition at line 53 of file elf.h.

◆ ELFMAG2

#define ELFMAG2   'L'

Definition at line 54 of file elf.h.

◆ ELFMAG3

#define ELFMAG3   'F'

Definition at line 55 of file elf.h.

◆ ELFCLASS32

#define ELFCLASS32   1

Definition at line 58 of file elf.h.

◆ ELFDATA2LSB

#define ELFDATA2LSB   1

Definition at line 61 of file elf.h.

◆ EV_CURRENT

#define EV_CURRENT   1

Definition at line 64 of file elf.h.

◆ PT_LOAD

#define PT_LOAD   1

Definition at line 79 of file elf.h.

Typedef Documentation

◆ Elf32_Addr

Definition at line 15 of file elf.h.

◆ Elf32_Half

Definition at line 16 of file elf.h.

◆ Elf32_Off

Definition at line 17 of file elf.h.

◆ Elf32_Sword

Definition at line 18 of file elf.h.

◆ Elf32_Word

Definition at line 19 of file elf.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )