KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
ELF Identification Bytes

Initial bytes of the ELF file, specifying how it should be interpreted. More...

Macros

#define EI_MAG0   0
 File identification: 0x7f.
 
#define EI_MAG1   1
 File identification: 'E'.
 
#define EI_MAG2   2
 File identification: 'L'.
 
#define EI_MAG3   3
 File identification: 'F'.
 
#define EI_CLASS   4
 File class (32/64-bit)
 
#define EI_DATA   5
 Data encoding (LSB/MSB)
 
#define EI_VERSION   6
 File version (must be 1)
 
#define EI_OSABI   7
 Operating System/ABI identification.
 
#define EI_ABIVERSION   8
 ABI version.
 
#define EI_PAD   9
 Start of padding bytes.
 
#define EI_NIDENT   16
 Size of elf_hdr::ident.
 
#define ELFCLASSNONE   0
 Invalid class.
 
#define ELFCLASS32   1
 32-bit objects
 
#define ELFCLASS64   2
 64-bit objects
 
#define ELFDATANONE   0
 Invalid encoding.
 
#define ELFDATA2LSB   1
 2's complement, little endian
 
#define ELFDATA2MSB   2
 2's complement, big Endian
 
#define EV_NONE   0
 Invalid version.
 
#define EV_CURRENT   1
 Current version.
 

Detailed Description

Initial bytes of the ELF file, specifying how it should be interpreted.

This group contains first the indexes of each ident field, then defines for the values they can contain.

Some of these are shared by other header fields.

Macro Definition Documentation

◆ EI_ABIVERSION

#define EI_ABIVERSION   8

ABI version.

◆ EI_CLASS

#define EI_CLASS   4

File class (32/64-bit)

◆ EI_DATA

#define EI_DATA   5

Data encoding (LSB/MSB)

◆ EI_MAG0

#define EI_MAG0   0

File identification: 0x7f.

◆ EI_MAG1

#define EI_MAG1   1

File identification: 'E'.

◆ EI_MAG2

#define EI_MAG2   2

File identification: 'L'.

◆ EI_MAG3

#define EI_MAG3   3

File identification: 'F'.

◆ EI_NIDENT

#define EI_NIDENT   16

Size of elf_hdr::ident.

◆ EI_OSABI

#define EI_OSABI   7

Operating System/ABI identification.

◆ EI_PAD

#define EI_PAD   9

Start of padding bytes.

◆ EI_VERSION

#define EI_VERSION   6

File version (must be 1)

◆ ELFCLASS32

#define ELFCLASS32   1

32-bit objects

◆ ELFCLASS64

#define ELFCLASS64   2

64-bit objects

◆ ELFCLASSNONE

#define ELFCLASSNONE   0

Invalid class.

◆ ELFDATA2LSB

#define ELFDATA2LSB   1

2's complement, little endian

◆ ELFDATA2MSB

#define ELFDATA2MSB   2

2's complement, big Endian

◆ ELFDATANONE

#define ELFDATANONE   0

Invalid encoding.

◆ EV_CURRENT

#define EV_CURRENT   1

Current version.

◆ EV_NONE

#define EV_NONE   0

Invalid version.