Module: ElfUtils
- Defined in:
- lib/elf_utils.rb,
lib/elf_utils/symbol.rb,
lib/elf_utils/section.rb,
lib/elf_utils/segment.rb,
lib/elf_utils/version.rb,
lib/elf_utils/elf_file.rb,
lib/elf_utils/types/dwarf.rb,
lib/elf_utils/section/base.rb,
lib/elf_utils/segment/base.rb,
lib/elf_utils/string_pread.rb,
lib/elf_utils/types/dwarf32.rb,
lib/elf_utils/types/dwarf64.rb,
lib/elf_utils/section/dynsym.rb,
lib/elf_utils/section/strtab.rb,
lib/elf_utils/section/symtab.rb,
lib/elf_utils/section/debug_addr.rb,
lib/elf_utils/section/debug_info.rb,
lib/elf_utils/section/debug_line.rb,
lib/elf_utils/section/debug_abbrev.rb,
lib/elf_utils/section/debug_arange.rb,
lib/elf_utils/section/debug_ranges.rb,
lib/elf_utils/section/debug_info/die.rb,
lib/elf_utils/types/dwarf/expression.rb,
lib/elf_utils/section/debug_info/header.rb,
lib/elf_utils/section/debug_str_offsets.rb,
lib/elf_utils/section/debug_info/die_ref.rb,
lib/elf_utils/section/debug_info/die/base.rb,
lib/elf_utils/section/debug_info/debug_str_ref.rb,
lib/elf_utils/section/debug_abbrev/abbreviation.rb,
lib/elf_utils/section/debug_info/compilation_unit.rb,
lib/elf_utils/section/debug_info/debug_str_offsets_ref.rb,
lib/elf_utils/section/debug_line/line_number_program/header.rb,
ext/elf_utils/elf_utils.c
Overview
ElfUtils for working with ELF & DWARF files
ElfUtils provides a user-friendly wrapper around core ELF & DWARF types to make it easier to extract common information from ELF files. The ElfFile and Symbol classes are the primary interface into ELF file contents. For complex tasks not currently provided there, you can directly access the ELF and DWARF structures from ElfFile#sections, ElfFile#segments, and ElfFile#debug_info.
ElfUtils supports 32-bit & 64-bit ELF formats, both little and big endian. ElfUtils supports DWARF v2, v3, v4, and v5, but not exhaustively.
Here are some quick examples of ElfUtils functionality.
Defined Under Namespace
Modules: Section, Segment, StringPread, Types Classes: ElfFile, Error, InvalidFormat, Symbol
Constant Summary collapse
- VERSION =
"0.3.3"
Class Method Summary collapse
-
.open(path, &block) ⇒ Object
open a file path, and return an ElfFile instance.