Class: MachO::LoadCommands::RoutinesCommand

Inherits:
LoadCommand show all
Defined in:
lib/macho/load_commands.rb

Overview

A load command containing the address of the dynamic shared library initialization routine and an index into the module table for the module that defines the routine. Corresponds to LC_ROUTINES.

Direct Known Subclasses

RoutinesCommand64

Instance Method Summary collapse

Methods inherited from LoadCommand

#cmd, #cmdsize, create, new_from_bin, #offset, #serializable?, #serialize, #to_s, #type, #view

Methods inherited from MachOStructure

bytesize, format, #initialize, new_from_bin

Constructor Details

This class inherits a constructor from MachO::MachOStructure

Instance Method Details

#init_addressInteger

Returns the address of the initialization routine.

Returns:

  • (Integer)

    the address of the initialization routine



716
# File 'lib/macho/load_commands.rb', line 716

field :init_address, :uint32

#init_moduleInteger

Returns the index into the module table that the init routine is defined in.

Returns:

  • (Integer)

    the index into the module table that the init routine is defined in



720
# File 'lib/macho/load_commands.rb', line 720

field :init_module, :uint32

#reserved1void

This method returns an undefined value.



723
# File 'lib/macho/load_commands.rb', line 723

field :reserved1, :uint32

#reserved2void

This method returns an undefined value.



726
# File 'lib/macho/load_commands.rb', line 726

field :reserved2, :uint32

#reserved3void

This method returns an undefined value.



729
# File 'lib/macho/load_commands.rb', line 729

field :reserved3, :uint32

#reserved4void

This method returns an undefined value.



732
# File 'lib/macho/load_commands.rb', line 732

field :reserved4, :uint32

#reserved5void

This method returns an undefined value.



735
# File 'lib/macho/load_commands.rb', line 735

field :reserved5, :uint32

#reserved6void

This method returns an undefined value.



738
# File 'lib/macho/load_commands.rb', line 738

field :reserved6, :uint32

#to_hHash

Returns a hash representation of this MachO::LoadCommands::RoutinesCommand.

Returns:



741
742
743
744
745
746
747
748
749
750
751
752
# File 'lib/macho/load_commands.rb', line 741

def to_h
  {
    "init_address" => init_address,
    "init_module" => init_module,
    "reserved1" => reserved1,
    "reserved2" => reserved2,
    "reserved3" => reserved3,
    "reserved4" => reserved4,
    "reserved5" => reserved5,
    "reserved6" => reserved6,
  }.merge super
end