Class: MachO::RoutinesCommand64

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_64.

Constant Summary collapse

FORMAT =
"VVQQQQQQQQ"
SIZEOF =
72

Instance Attribute Summary collapse

Attributes inherited from LoadCommand

#cmd, #cmdsize, #offset

Instance Method Summary collapse

Methods inherited from LoadCommand

new_from_bin, #to_s, #type

Methods inherited from MachOStructure

bytesize, new_from_bin

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.



510
511
512
513
514
515
516
517
518
519
520
521
522
# File 'lib/macho/load_commands.rb', line 510

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_addressFixnum (readonly)

Returns the address of the initialization routine.

Returns:

  • (Fixnum)

    the address of the initialization routine



483
484
485
# File 'lib/macho/load_commands.rb', line 483

def init_address
  @init_address
end

#init_moduleFixnum (readonly)

Returns the index into the module table that the init routine is defined in.

Returns:

  • (Fixnum)

    the index into the module table that the init routine is defined in



486
487
488
# File 'lib/macho/load_commands.rb', line 486

def init_module
  @init_module
end

#reserved1void (readonly)

This method returns an undefined value.



489
490
491
# File 'lib/macho/load_commands.rb', line 489

def reserved1
  @reserved1
end

#reserved2void (readonly)

This method returns an undefined value.



492
493
494
# File 'lib/macho/load_commands.rb', line 492

def reserved2
  @reserved2
end

#reserved3void (readonly)

This method returns an undefined value.



495
496
497
# File 'lib/macho/load_commands.rb', line 495

def reserved3
  @reserved3
end

#reserved4void (readonly)

This method returns an undefined value.



498
499
500
# File 'lib/macho/load_commands.rb', line 498

def reserved4
  @reserved4
end

#reserved5void (readonly)

This method returns an undefined value.



501
502
503
# File 'lib/macho/load_commands.rb', line 501

def reserved5
  @reserved5
end

#reserved6void (readonly)

This method returns an undefined value.



504
505
506
# File 'lib/macho/load_commands.rb', line 504

def reserved6
  @reserved6
end