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



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

field :bind_off, :uint32

#bind_sizeInteger

Returns the size of the binding information.

Returns:

  • (Integer)

    the size of the binding information



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

field :bind_size, :uint32

#export_offInteger

Returns the file offset to the export information.

Returns:

  • (Integer)

    the file offset to the export information



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

field :export_off, :uint32

#export_sizeInteger

Returns the size of the export information.

Returns:

  • (Integer)

    the size of the export information



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

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



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

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



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

field :lazy_bind_size, :uint32

#rebase_offInteger

Returns the file offset to the rebase information.

Returns:

  • (Integer)

    the file offset to the rebase information



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

field :rebase_off, :uint32

#rebase_sizeInteger

Returns the size of the rebase information.

Returns:

  • (Integer)

    the size of the rebase information



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

field :rebase_size, :uint32

#to_hHash

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

Returns:



1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
# File 'lib/macho/load_commands.rb', line 1285

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



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

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



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

field :weak_bind_size, :uint32