LLVM 19.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::ELF::Elf32_Ehdr Struct Reference

#include "llvm/BinaryFormat/ELF.h"

Public Member Functions

bool checkMagic () const
unsigned char getFileClass () const
unsigned char getDataEncoding () const

Public Attributes

unsigned char e_ident [EI_NIDENT]
Elf32_Half e_type
Elf32_Half e_machine
Elf32_Word e_version
Elf32_Addr e_entry
Elf32_Off e_phoff
Elf32_Off e_shoff
Elf32_Word e_flags
Elf32_Half e_ehsize
Elf32_Half e_phentsize
Elf32_Half e_phnum
Elf32_Half e_shentsize
Elf32_Half e_shnum
Elf32_Half e_shstrndx

Detailed Description

Definition at line 62 of file ELF.h.

Member Function Documentation

◆ checkMagic()

bool llvm::ELF::Elf32_Ehdr::checkMagic ( ) const

Definition at line 78 of file ELF.h.

References e_ident, llvm::ELF::ElfMagic, and memcmp.

◆ getDataEncoding()

unsigned char llvm::ELF::Elf32_Ehdr::getDataEncoding ( ) const

Definition at line 83 of file ELF.h.

References e_ident, and llvm::ELF::EI_DATA.

◆ getFileClass()

unsigned char llvm::ELF::Elf32_Ehdr::getFileClass ( ) const

Definition at line 82 of file ELF.h.

References e_ident, and llvm::ELF::EI_CLASS.

Member Data Documentation

◆ e_ehsize

Elf32_Half llvm::ELF::Elf32_Ehdr::e_ehsize

Definition at line 71 of file ELF.h.

◆ e_entry

Elf32_Addr llvm::ELF::Elf32_Ehdr::e_entry

Definition at line 67 of file ELF.h.

◆ e_flags

Elf32_Word llvm::ELF::Elf32_Ehdr::e_flags

Definition at line 70 of file ELF.h.

◆ e_ident

unsigned char llvm::ELF::Elf32_Ehdr::e_ident[EI_NIDENT]

Definition at line 63 of file ELF.h.

Referenced by checkMagic(), getDataEncoding(), and getFileClass().

◆ e_machine

Elf32_Half llvm::ELF::Elf32_Ehdr::e_machine

Definition at line 65 of file ELF.h.

◆ e_phentsize

Elf32_Half llvm::ELF::Elf32_Ehdr::e_phentsize

Definition at line 72 of file ELF.h.

◆ e_phnum

Elf32_Half llvm::ELF::Elf32_Ehdr::e_phnum

Definition at line 73 of file ELF.h.

◆ e_phoff

Elf32_Off llvm::ELF::Elf32_Ehdr::e_phoff

Definition at line 68 of file ELF.h.

◆ e_shentsize

Elf32_Half llvm::ELF::Elf32_Ehdr::e_shentsize

Definition at line 74 of file ELF.h.

◆ e_shnum

Elf32_Half llvm::ELF::Elf32_Ehdr::e_shnum

Definition at line 75 of file ELF.h.

◆ e_shoff

Elf32_Off llvm::ELF::Elf32_Ehdr::e_shoff

Definition at line 69 of file ELF.h.

◆ e_shstrndx

Elf32_Half llvm::ELF::Elf32_Ehdr::e_shstrndx

Definition at line 76 of file ELF.h.

◆ e_type

Elf32_Half llvm::ELF::Elf32_Ehdr::e_type

Definition at line 64 of file ELF.h.

◆ e_version

Elf32_Word llvm::ELF::Elf32_Ehdr::e_version

Definition at line 66 of file ELF.h.

The documentation for this struct was generated from the following file: