Class: MachO::LoadCommands::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 Method Summary collapse

Methods inherited from LoadCommand

#cmd, #cmdsize, create, new_from_bin, #offset, #serializable?, #serialize, #to_s, #type, #view

Methods inherited from MachOStructure

bytesize, format, #initialize, new_from_bin

Constructor Details

This class inherits a constructor from MachO::MachOStructure

Instance Method Details

#bind_offInteger

Returns the file offset to the binding information.

Returns:

  • (Integer)

    the file offset to the binding information



1162
# File 'lib/macho/load_commands.rb', line 1162

field :bind_off, :uint32

#bind_sizeInteger

Returns the size of the binding information.

Returns:

  • (Integer)

    the size of the binding information



1165
# File 'lib/macho/load_commands.rb', line 1165

field :bind_size, :uint32

#export_offInteger

Returns the file offset to the export information.

Returns:

  • (Integer)

    the file offset to the export information



1180
# File 'lib/macho/load_commands.rb', line 1180

field :export_off, :uint32

#export_sizeInteger

Returns the size of the export information.

Returns:

  • (Integer)

    the size of the export information



1183
# File 'lib/macho/load_commands.rb', line 1183

field :export_size, :uint32

#lazy_bind_offInteger

Returns the file offset to the lazy binding information.

Returns:

  • (Integer)

    the file offset to the lazy binding information



1174
# File 'lib/macho/load_commands.rb', line 1174

field :lazy_bind_off, :uint32

#lazy_bind_sizeInteger

Returns the size of the lazy binding information.

Returns:

  • (Integer)

    the size of the lazy binding information



1177
# File 'lib/macho/load_commands.rb', line 1177

field :lazy_bind_size, :uint32

#rebase_offInteger

Returns the file offset to the rebase information.

Returns:

  • (Integer)

    the file offset to the rebase information



1156
# File 'lib/macho/load_commands.rb', line 1156

field :rebase_off, :uint32

#rebase_sizeInteger

Returns the size of the rebase information.

Returns:

  • (Integer)

    the size of the rebase information



1159
# File 'lib/macho/load_commands.rb', line 1159

field :rebase_size, :uint32

#to_hHash

Returns a hash representation of this MachO::LoadCommands::DyldInfoCommand.

Returns:



1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
# File 'lib/macho/load_commands.rb', line 1186

def to_h
  {
    "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,
  }.merge super
end

#weak_bind_offInteger

Returns the file offset to the weak binding information.

Returns:

  • (Integer)

    the file offset to the weak binding information



1168
# File 'lib/macho/load_commands.rb', line 1168

field :weak_bind_off, :uint32

#weak_bind_sizeInteger

Returns the size of the weak binding information.

Returns:

  • (Integer)

    the size of the weak binding information



1171
# File 'lib/macho/load_commands.rb', line 1171

field :weak_bind_size, :uint32