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.

Constant Summary collapse

FORMAT =
"VVVVVVVVVVVV"
SIZEOF =
48

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, 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

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



922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
# File 'lib/macho/load_commands.rb', line 922

def initialize(raw_data, 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(raw_data, 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_offFixnum (readonly)

Returns the file offset to the binding information.

Returns:

  • (Fixnum)

    the file offset to the binding information



895
896
897
# File 'lib/macho/load_commands.rb', line 895

def bind_off
  @bind_off
end

#bind_sizeFixnum (readonly)

Returns the size of the binding information.

Returns:

  • (Fixnum)

    the size of the binding information



898
899
900
# File 'lib/macho/load_commands.rb', line 898

def bind_size
  @bind_size
end

#export_offFixnum (readonly)

Returns the file offset to the export information.

Returns:

  • (Fixnum)

    the file offset to the export information



913
914
915
# File 'lib/macho/load_commands.rb', line 913

def export_off
  @export_off
end

#export_sizeFixnum (readonly)

Returns the size of the export information.

Returns:

  • (Fixnum)

    the size of the export information



916
917
918
# File 'lib/macho/load_commands.rb', line 916

def export_size
  @export_size
end

#lazy_bind_offFixnum (readonly)

Returns the file offset to the lazy binding information.

Returns:

  • (Fixnum)

    the file offset to the lazy binding information



907
908
909
# File 'lib/macho/load_commands.rb', line 907

def lazy_bind_off
  @lazy_bind_off
end

#lazy_bind_sizeFixnum (readonly)

Returns the size of the lazy binding information.

Returns:

  • (Fixnum)

    the size of the lazy binding information



910
911
912
# File 'lib/macho/load_commands.rb', line 910

def lazy_bind_size
  @lazy_bind_size
end

#rebase_offFixnum (readonly)

Returns the file offset to the rebase information.

Returns:

  • (Fixnum)

    the file offset to the rebase information



889
890
891
# File 'lib/macho/load_commands.rb', line 889

def rebase_off
  @rebase_off
end

#rebase_sizeFixnum (readonly)

Returns the size of the rebase information.

Returns:

  • (Fixnum)

    the size of the rebase information



892
893
894
# File 'lib/macho/load_commands.rb', line 892

def rebase_size
  @rebase_size
end

#weak_bind_offFixnum (readonly)

Returns the file offset to the weak binding information.

Returns:

  • (Fixnum)

    the file offset to the weak binding information



901
902
903
# File 'lib/macho/load_commands.rb', line 901

def weak_bind_off
  @weak_bind_off
end

#weak_bind_sizeFixnum (readonly)

Returns the size of the weak binding information.

Returns:

  • (Fixnum)

    the size of the weak binding information



904
905
906
# File 'lib/macho/load_commands.rb', line 904

def weak_bind_size
  @weak_bind_size
end