Class: MachO::LoadCommands::RoutinesCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::LoadCommands::RoutinesCommand
- 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
Instance Method Summary collapse
-
#init_address ⇒ Integer
The address of the initialization routine.
-
#init_module ⇒ Integer
The index into the module table that the init routine is defined in.
- #reserved1 ⇒ void
- #reserved2 ⇒ void
- #reserved3 ⇒ void
- #reserved4 ⇒ void
- #reserved5 ⇒ void
- #reserved6 ⇒ void
-
#to_h ⇒ Hash
A hash representation of this RoutinesCommand.
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_address ⇒ Integer
Returns the address of the initialization routine.
716 |
# File 'lib/macho/load_commands.rb', line 716 field :init_address, :uint32 |
#init_module ⇒ Integer
Returns 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 |
#reserved1 ⇒ void
This method returns an undefined value.
723 |
# File 'lib/macho/load_commands.rb', line 723 field :reserved1, :uint32 |
#reserved2 ⇒ void
This method returns an undefined value.
726 |
# File 'lib/macho/load_commands.rb', line 726 field :reserved2, :uint32 |
#reserved3 ⇒ void
This method returns an undefined value.
729 |
# File 'lib/macho/load_commands.rb', line 729 field :reserved3, :uint32 |
#reserved4 ⇒ void
This method returns an undefined value.
732 |
# File 'lib/macho/load_commands.rb', line 732 field :reserved4, :uint32 |
#reserved5 ⇒ void
This method returns an undefined value.
735 |
# File 'lib/macho/load_commands.rb', line 735 field :reserved5, :uint32 |
#reserved6 ⇒ void
This method returns an undefined value.
738 |
# File 'lib/macho/load_commands.rb', line 738 field :reserved6, :uint32 |
#to_h ⇒ Hash
Returns a hash representation of this MachO::LoadCommands::RoutinesCommand.
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 |