Class: MachO::RoutinesCommand64
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::RoutinesCommand64
- 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_64.
Constant Summary collapse
- FORMAT =
"L=2Q=8"- SIZEOF =
72
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) ⇒ RoutinesCommand64
constructor
private
A new instance of RoutinesCommand64.
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) ⇒ RoutinesCommand64
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 RoutinesCommand64.
530 531 532 533 534 535 536 537 538 539 540 541 542 |
# File 'lib/macho/load_commands.rb', line 530 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)
503 504 505 |
# File 'lib/macho/load_commands.rb', line 503 def init_address @init_address end |
#init_module ⇒ Fixnum (readonly)
506 507 508 |
# File 'lib/macho/load_commands.rb', line 506 def init_module @init_module end |
#reserved1 ⇒ void (readonly)
509 510 511 |
# File 'lib/macho/load_commands.rb', line 509 def reserved1 @reserved1 end |
#reserved2 ⇒ void (readonly)
512 513 514 |
# File 'lib/macho/load_commands.rb', line 512 def reserved2 @reserved2 end |
#reserved3 ⇒ void (readonly)
515 516 517 |
# File 'lib/macho/load_commands.rb', line 515 def reserved3 @reserved3 end |
#reserved4 ⇒ void (readonly)
518 519 520 |
# File 'lib/macho/load_commands.rb', line 518 def reserved4 @reserved4 end |
#reserved5 ⇒ void (readonly)
521 522 523 |
# File 'lib/macho/load_commands.rb', line 521 def reserved5 @reserved5 end |
#reserved6 ⇒ void (readonly)
524 525 526 |
# File 'lib/macho/load_commands.rb', line 524 def reserved6 @reserved6 end |