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



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

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



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

field :init_module, :uint32

#reserved1void

This method returns an undefined value.



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

field :reserved1, :uint32

#reserved2void

This method returns an undefined value.



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

field :reserved2, :uint32

#reserved3void

This method returns an undefined value.



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

field :reserved3, :uint32

#reserved4void

This method returns an undefined value.



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

field :reserved4, :uint32

#reserved5void

This method returns an undefined value.



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

field :reserved5, :uint32

#reserved6void

This method returns an undefined value.



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

field :reserved6, :uint32

#to_hHash

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

Returns:



642
643
644
645
646
647
648
649
650
651
652
653
# File 'lib/macho/load_commands.rb', line 642

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