Class: ElfUtils::Section::Symtab

Inherits:
Base
  • Object
show all
Defined in:
lib/elf_utils/section/symtab.rb

Instance Attribute Summary

Attributes inherited from Base

#header

Instance Method Summary collapse

Methods inherited from Base

#addr, #alloc?, #bytes, #flags, #initialize, #inspect, #load_segment, #name, #offset, #relocate, #relocation_offset, #size, #symbol, #to_range

Constructor Details

This class inherits a constructor from ElfUtils::Section::Base

Instance Method Details

#symbolsObject



5
6
7
8
9
# File 'lib/elf_utils/section/symtab.rb', line 5

def symbols
  @symbols ||= @file.elf_type(:Sym).unpack_all(bytes).map do |sym|
    Symbol.new(@file, sym)
  end
end