Class: MachO::RoutinesCommand

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.

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) ⇒ RoutinesCommand

Returns a new instance of RoutinesCommand.



571
572
573
574
575
576
577
578
579
580
581
582
583
# File 'lib/macho/load_commands.rb', line 571

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

Returns the address of the initialization routine.

Returns:

  • (Fixnum)

    the address of the initialization routine



544
545
546
# File 'lib/macho/load_commands.rb', line 544

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



547
548
549
# File 'lib/macho/load_commands.rb', line 547

def init_module
  @init_module
end

#reserved1void (readonly)

This method returns an undefined value.



550
551
552
# File 'lib/macho/load_commands.rb', line 550

def reserved1
  @reserved1
end

#reserved2void (readonly)

This method returns an undefined value.



553
554
555
# File 'lib/macho/load_commands.rb', line 553

def reserved2
  @reserved2
end

#reserved3void (readonly)

This method returns an undefined value.



556
557
558
# File 'lib/macho/load_commands.rb', line 556

def reserved3
  @reserved3
end

#reserved4void (readonly)

This method returns an undefined value.



559
560
561
# File 'lib/macho/load_commands.rb', line 559

def reserved4
  @reserved4
end

#reserved5void (readonly)

This method returns an undefined value.



562
563
564
# File 'lib/macho/load_commands.rb', line 562

def reserved5
  @reserved5
end

#reserved6void (readonly)

This method returns an undefined value.



565
566
567
# File 'lib/macho/load_commands.rb', line 565

def reserved6
  @reserved6
end