class Elf
Public Class Methods
new(_filepath)
click to toggle source
# File lib/elfcat/elf.rb, line 2 def initialize _filepath $resource = File.binread _filepath return self end
Public Instance Methods
file_header()
click to toggle source
# File lib/elfcat/elf.rb, line 8 def file_header @file_header ||= FileHeader.new end
program_header()
click to toggle source
# File lib/elfcat/elf.rb, line 16 def program_header @program_header ||= ProgramHeader.new(file_header, section_table_with_names) end
resource()
click to toggle source
# File lib/elfcat/elf.rb, line 12 def resource return $resource end
section_names()
click to toggle source
# File lib/elfcat/elf.rb, line 24 def section_names @section_names ||= SectionName.new(file_header, section_table) end
section_table()
click to toggle source
# File lib/elfcat/elf.rb, line 20 def section_table @section_table ||= SectionTable.new(file_header) end
section_table_with_names()
click to toggle source
# File lib/elfcat/elf.rb, line 28 def section_table_with_names section_table.populate(section_names) end
string_table()
click to toggle source
# File lib/elfcat/elf.rb, line 32 def string_table @string_table ||= StringTable.new(section_table_with_names) end