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:

  • the file offset to the binding information



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

field :bind_off, :uint32

#bind_sizeInteger

Returns the size of the binding information.

Returns:

  • the size of the binding information



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

field :bind_size, :uint32

#export_offInteger

Returns the file offset to the export information.

Returns:

  • the file offset to the export information



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

field :export_off, :uint32

#export_sizeInteger

Returns the size of the export information.

Returns:

  • the size of the export information



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

field :export_size, :uint32

#lazy_bind_offInteger

Returns the file offset to the lazy binding information.

Returns:

  • the file offset to the lazy binding information



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

field :lazy_bind_off, :uint32

#lazy_bind_sizeInteger

Returns the size of the lazy binding information.

Returns:

  • the size of the lazy binding information



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

field :lazy_bind_size, :uint32

#rebase_offInteger

Returns the file offset to the rebase information.

Returns:

  • the file offset to the rebase information



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

field :rebase_off, :uint32

#rebase_sizeInteger

Returns the size of the rebase information.

Returns:

  • the size of the rebase information



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

field :rebase_size, :uint32

#to_hHash

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

Returns:



1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
# File 'lib/macho/load_commands.rb', line 1306

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:

  • the file offset to the weak binding information



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

field :weak_bind_off, :uint32

#weak_bind_sizeInteger

Returns the size of the weak binding information.

Returns:

  • the size of the weak binding information



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

field :weak_bind_size, :uint32