Class: MachO::DyldInfoCommand

Inherits:
LoadCommand show all
Defined in:
lib/macho/load_commands.rb

Overview

A load command containing the file offsets and sizes of the new compressed form of the information dyld needs to load the image. Corresponds to LC_DYLD_INFO and LC_DYLD_INFO_ONLY.

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, rebase_off, rebase_size, bind_off, bind_size, weak_bind_off, weak_bind_size, lazy_bind_off, lazy_bind_size, export_off, export_size) ⇒ DyldInfoCommand

Returns a new instance of DyldInfoCommand.



830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
# File 'lib/macho/load_commands.rb', line 830

def initialize(offset, cmd, cmdsize, rebase_off, rebase_size, bind_off,
    bind_size, weak_bind_off, weak_bind_size, lazy_bind_off,
    lazy_bind_size, export_off, export_size)
  super(offset, cmd, cmdsize)
  @rebase_off = rebase_off
  @rebase_size = rebase_size
  @bind_off = bind_off
  @bind_size = bind_size
  @weak_bind_off = weak_bind_off
  @weak_bind_size = weak_bind_size
  @lazy_bind_off = lazy_bind_off
  @lazy_bind_size = lazy_bind_size
  @export_off = export_off
  @export_size = export_size
end

Instance Attribute Details

#bind_offObject (readonly)

Returns the value of attribute bind_off.



822
823
824
# File 'lib/macho/load_commands.rb', line 822

def bind_off
  @bind_off
end

#bind_sizeObject (readonly)

Returns the value of attribute bind_size.



822
823
824
# File 'lib/macho/load_commands.rb', line 822

def bind_size
  @bind_size
end

#export_offObject (readonly)

Returns the value of attribute export_off.



824
825
826
# File 'lib/macho/load_commands.rb', line 824

def export_off
  @export_off
end

#export_sizeObject (readonly)

Returns the value of attribute export_size.



824
825
826
# File 'lib/macho/load_commands.rb', line 824

def export_size
  @export_size
end

#lazy_bind_offObject (readonly)

Returns the value of attribute lazy_bind_off.



823
824
825
# File 'lib/macho/load_commands.rb', line 823

def lazy_bind_off
  @lazy_bind_off
end

#lazy_bind_sizeObject (readonly)

Returns the value of attribute lazy_bind_size.



824
825
826
# File 'lib/macho/load_commands.rb', line 824

def lazy_bind_size
  @lazy_bind_size
end

#rebase_offObject (readonly)

Returns the value of attribute rebase_off.



822
823
824
# File 'lib/macho/load_commands.rb', line 822

def rebase_off
  @rebase_off
end

#rebase_sizeObject (readonly)

Returns the value of attribute rebase_size.



822
823
824
# File 'lib/macho/load_commands.rb', line 822

def rebase_size
  @rebase_size
end

#weak_bind_offObject (readonly)

Returns the value of attribute weak_bind_off.



823
824
825
# File 'lib/macho/load_commands.rb', line 823

def weak_bind_off
  @weak_bind_off
end

#weak_bind_sizeObject (readonly)

Returns the value of attribute weak_bind_size.



823
824
825
# File 'lib/macho/load_commands.rb', line 823

def weak_bind_size
  @weak_bind_size
end