Module: ELFTools::Structs

Defined in:
lib/elftools/structs.rb

Overview

Define ELF related structures in this module.

Structures are fetched from github.com/torvalds/linux/blob/master/include/uapi/linux/elf.h. Use gem bindata to have these structures support 32/64 bits and little/big endian simultaneously.

Defined Under Namespace

Classes: ELF32_Phdr, ELF32_sym, ELF64_Phdr, ELF64_sym, ELFStruct, ELF_Dyn, ELF_Ehdr, ELF_Nhdr, ELF_Rel, ELF_Rela, ELF_Shdr

Constant Summary collapse

ELF_Phdr =

Gets the class of program header according to bits.

{
  32 => ELF32_Phdr,
  64 => ELF64_Phdr
}.freeze
ELF_sym =

Get symbol header class according to bits.

{
  32 => ELF32_sym,
  64 => ELF64_sym
}.freeze