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 =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

"L=12".freeze
SIZEOF =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

48

Instance Attribute Summary collapse

Attributes inherited from LoadCommand

#cmd, #cmdsize, #view

Instance Method Summary collapse

Methods inherited from LoadCommand

create, new_from_bin, #offset, #serializable?, #serialize, #to_s, #type

Methods inherited from MachOStructure

bytesize, new_from_bin

Constructor Details

#initialize(view, 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.



1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
# File 'lib/macho/load_commands.rb', line 1130

def initialize(view, 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(view, 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



1098
1099
1100
# File 'lib/macho/load_commands.rb', line 1098

def bind_off
  @bind_off
end

#bind_sizeFixnum (readonly)

Returns the size of the binding information.

Returns:

  • (Fixnum)

    the size of the binding information



1101
1102
1103
# File 'lib/macho/load_commands.rb', line 1101

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



1116
1117
1118
# File 'lib/macho/load_commands.rb', line 1116

def export_off
  @export_off
end

#export_sizeFixnum (readonly)

Returns the size of the export information.

Returns:

  • (Fixnum)

    the size of the export information



1119
1120
1121
# File 'lib/macho/load_commands.rb', line 1119

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



1110
1111
1112
# File 'lib/macho/load_commands.rb', line 1110

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



1113
1114
1115
# File 'lib/macho/load_commands.rb', line 1113

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



1092
1093
1094
# File 'lib/macho/load_commands.rb', line 1092

def rebase_off
  @rebase_off
end

#rebase_sizeFixnum (readonly)

Returns the size of the rebase information.

Returns:

  • (Fixnum)

    the size of the rebase information



1095
1096
1097
# File 'lib/macho/load_commands.rb', line 1095

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



1104
1105
1106
# File 'lib/macho/load_commands.rb', line 1104

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



1107
1108
1109
# File 'lib/macho/load_commands.rb', line 1107

def weak_bind_size
  @weak_bind_size
end