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
Constant Summary collapse
- FORMAT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
"L=10".freeze
- SIZEOF =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
40
Instance Attribute Summary collapse
-
#init_address ⇒ Integer
readonly
The address of the initialization routine.
-
#init_module ⇒ Integer
readonly
The index into the module table that the init routine is defined in.
- #reserved1 ⇒ void readonly
- #reserved2 ⇒ void readonly
- #reserved3 ⇒ void readonly
- #reserved4 ⇒ void readonly
- #reserved5 ⇒ void readonly
- #reserved6 ⇒ void readonly
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(view, cmd, cmdsize, init_address, init_module, reserved1, reserved2, reserved3, reserved4, reserved5, reserved6) ⇒ RoutinesCommand
constructor
private
A new instance of RoutinesCommand.
-
#to_h ⇒ Hash
A hash representation of this RoutinesCommand.
Methods inherited from LoadCommand
create, new_from_bin, #offset, #serializable?, #serialize, #to_s, #type
Methods inherited from MachOStructure
Constructor Details
#initialize(view, cmd, cmdsize, init_address, init_module, reserved1, reserved2, reserved3, reserved4, reserved5, reserved6) ⇒ RoutinesCommand
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of RoutinesCommand.
727 728 729 730 731 732 733 734 735 736 737 738 |
# File 'lib/macho/load_commands.rb', line 727 def initialize(view, cmd, cmdsize, init_address, init_module, reserved1, reserved2, reserved3, reserved4, reserved5, reserved6) super(view, cmd, cmdsize) @init_address = init_address @init_module = init_module @reserved1 = reserved1 @reserved2 = reserved2 @reserved3 = reserved3 @reserved4 = reserved4 @reserved5 = reserved5 @reserved6 = reserved6 end |
Instance Attribute Details
#init_address ⇒ Integer (readonly)
Returns the address of the initialization routine.
694 695 696 |
# File 'lib/macho/load_commands.rb', line 694 def init_address @init_address end |
#init_module ⇒ Integer (readonly)
Returns the index into the module table that the init routine is defined in.
698 699 700 |
# File 'lib/macho/load_commands.rb', line 698 def init_module @init_module end |
#reserved1 ⇒ void (readonly)
This method returns an undefined value.
701 702 703 |
# File 'lib/macho/load_commands.rb', line 701 def reserved1 @reserved1 end |
#reserved2 ⇒ void (readonly)
This method returns an undefined value.
704 705 706 |
# File 'lib/macho/load_commands.rb', line 704 def reserved2 @reserved2 end |
#reserved3 ⇒ void (readonly)
This method returns an undefined value.
707 708 709 |
# File 'lib/macho/load_commands.rb', line 707 def reserved3 @reserved3 end |
#reserved4 ⇒ void (readonly)
This method returns an undefined value.
710 711 712 |
# File 'lib/macho/load_commands.rb', line 710 def reserved4 @reserved4 end |
#reserved5 ⇒ void (readonly)
This method returns an undefined value.
713 714 715 |
# File 'lib/macho/load_commands.rb', line 713 def reserved5 @reserved5 end |
#reserved6 ⇒ void (readonly)
This method returns an undefined value.
716 717 718 |
# File 'lib/macho/load_commands.rb', line 716 def reserved6 @reserved6 end |
Instance Method Details
#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 |