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.

Instance Attribute Summary collapse

Attributes inherited from LoadCommand

#cmd, #cmdsize, #offset

Instance Method Summary collapse

Methods inherited from LoadCommand

new_from_bin, #to_s

Methods inherited from MachOStructure

bytesize, new_from_bin

Constructor Details

#initialize(offset, cmd, cmdsize, init_address, init_module, reserved1, reserved2, reserved3, reserved4, reserved5, reserved6) ⇒ RoutinesCommand64

Returns a new instance of RoutinesCommand64.



499
500
501
502
503
504
505
506
507
508
509
510
511
# File 'lib/macho/load_commands.rb', line 499

def initialize(offset, cmd, cmdsize, init_address, init_module,
		reserved1, reserved2, reserved3, reserved4, reserved5,
		reserved6)
	super(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_addressObject (readonly)

Returns the value of attribute init_address.



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

def init_address
  @init_address
end

#init_moduleObject (readonly)

Returns the value of attribute init_module.



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

def init_module
  @init_module
end

#reserved1Object (readonly)

Returns the value of attribute reserved1.



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

def reserved1
  @reserved1
end

#reserved2Object (readonly)

Returns the value of attribute reserved2.



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

def reserved2
  @reserved2
end

#reserved3Object (readonly)

Returns the value of attribute reserved3.



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

def reserved3
  @reserved3
end

#reserved4Object (readonly)

Returns the value of attribute reserved4.



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

def reserved4
  @reserved4
end

#reserved5Object (readonly)

Returns the value of attribute reserved5.



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

def reserved5
  @reserved5
end

#reserved6Object (readonly)

Returns the value of attribute reserved6.



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

def reserved6
  @reserved6
end