Class: MachO::RoutinesCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::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.
Constant Summary collapse
- FORMAT =
"VVVVVVVVVV"- SIZEOF =
40
Instance Attribute Summary collapse
-
#init_address ⇒ Fixnum
readonly
The address of the initialization routine.
-
#init_module ⇒ Fixnum
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(raw_data, offset, cmd, cmdsize, init_address, init_module, reserved1, reserved2, reserved3, reserved4, reserved5, reserved6) ⇒ RoutinesCommand
constructor
private
A new instance of RoutinesCommand.
Methods inherited from LoadCommand
Methods inherited from MachOStructure
Constructor Details
#initialize(raw_data, offset, 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.
456 457 458 459 460 461 462 463 464 465 466 467 468 |
# File 'lib/macho/load_commands.rb', line 456 def initialize(raw_data, offset, cmd, cmdsize, init_address, init_module, reserved1, reserved2, reserved3, reserved4, reserved5, reserved6) super(raw_data, offset, 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 ⇒ Fixnum (readonly)
Returns the address of the initialization routine.
429 430 431 |
# File 'lib/macho/load_commands.rb', line 429 def init_address @init_address end |
#init_module ⇒ Fixnum (readonly)
Returns the index into the module table that the init routine is defined in.
432 433 434 |
# File 'lib/macho/load_commands.rb', line 432 def init_module @init_module end |
#reserved1 ⇒ void (readonly)
This method returns an undefined value.
435 436 437 |
# File 'lib/macho/load_commands.rb', line 435 def reserved1 @reserved1 end |
#reserved2 ⇒ void (readonly)
This method returns an undefined value.
438 439 440 |
# File 'lib/macho/load_commands.rb', line 438 def reserved2 @reserved2 end |
#reserved3 ⇒ void (readonly)
This method returns an undefined value.
441 442 443 |
# File 'lib/macho/load_commands.rb', line 441 def reserved3 @reserved3 end |
#reserved4 ⇒ void (readonly)
This method returns an undefined value.
444 445 446 |
# File 'lib/macho/load_commands.rb', line 444 def reserved4 @reserved4 end |
#reserved5 ⇒ void (readonly)
This method returns an undefined value.
447 448 449 |
# File 'lib/macho/load_commands.rb', line 447 def reserved5 @reserved5 end |
#reserved6 ⇒ void (readonly)
This method returns an undefined value.
450 451 452 |
# File 'lib/macho/load_commands.rb', line 450 def reserved6 @reserved6 end |