Class: MachO::LoadCommands::DysymtabCommand

Inherits:
LoadCommand show all
Defined in:
lib/macho/load_commands.rb

Overview

A load command containing symbolic information needed to support data structures used by the dynamic link editor. Corresponds to LC_DYSYMTAB.

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

#extrefsymoffInteger

Returns the file offset to the referenced symbol table.

Returns:

  • (Integer)

    the file offset to the referenced symbol table



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

field :extrefsymoff, :uint32

#extreloffInteger

Returns the file offset to the external relocation entries.

Returns:

  • (Integer)

    the file offset to the external relocation entries



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

field :extreloff, :uint32

#iextdefsymInteger

Returns the index to externally defined symbols.

Returns:

  • (Integer)

    the index to externally defined symbols



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

field :iextdefsym, :uint32

#ilocalsymInteger

Returns the index to local symbols.

Returns:

  • (Integer)

    the index to local symbols



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

field :ilocalsym, :uint32

#indirectsymoffInteger

Returns the file offset to the indirect symbol table.

Returns:

  • (Integer)

    the file offset to the indirect symbol table



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

field :indirectsymoff, :uint32

#iundefsymInteger

Returns the index to undefined symbols.

Returns:

  • (Integer)

    the index to undefined symbols



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

field :iundefsym, :uint32

#locreloffInteger

Returns the file offset to the local relocation entries.

Returns:

  • (Integer)

    the file offset to the local relocation entries



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

field :locreloff, :uint32

#modtaboffInteger

Returns the file offset to the module table.

Returns:

  • (Integer)

    the file offset to the module table



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

field :modtaboff, :uint32

#nextdefsymInteger

Returns the number of externally defined symbols.

Returns:

  • (Integer)

    the number of externally defined symbols



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

field :nextdefsym, :uint32

#nextrefsymsInteger

Returns the number of entries in the referenced symbol table.

Returns:

  • (Integer)

    the number of entries in the referenced symbol table



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

field :nextrefsyms, :uint32

#nextrelInteger

Returns the number of external relocation entries.

Returns:

  • (Integer)

    the number of external relocation entries



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

field :nextrel, :uint32

#nindirectsymsInteger

Returns the number of entries in the indirect symbol table.

Returns:

  • (Integer)

    the number of entries in the indirect symbol table



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

field :nindirectsyms, :uint32

#nlocalsymInteger

Returns the number of local symbols.

Returns:

  • (Integer)

    the number of local symbols



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

field :nlocalsym, :uint32

#nlocrelInteger

Returns the number of local relocation entries.

Returns:

  • (Integer)

    the number of local relocation entries



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

field :nlocrel, :uint32

#nmodtabInteger

Returns the number of entries in the module table.

Returns:

  • (Integer)

    the number of entries in the module table



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

field :nmodtab, :uint32

#ntocInteger

Returns the number of entries in the table of contents.

Returns:

  • (Integer)

    the number of entries in the table of contents



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

field :ntoc, :uint32

#nundefsymInteger

Returns the number of undefined symbols.

Returns:

  • (Integer)

    the number of undefined symbols



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

field :nundefsym, :uint32

#to_hHash

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

Returns:



826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
# File 'lib/macho/load_commands.rb', line 826

def to_h
  {
    "ilocalsym" => ilocalsym,
    "nlocalsym" => nlocalsym,
    "iextdefsym" => iextdefsym,
    "nextdefsym" => nextdefsym,
    "iundefsym" => iundefsym,
    "nundefsym" => nundefsym,
    "tocoff" => tocoff,
    "ntoc" => ntoc,
    "modtaboff" => modtaboff,
    "nmodtab" => nmodtab,
    "extrefsymoff" => extrefsymoff,
    "nextrefsyms" => nextrefsyms,
    "indirectsymoff" => indirectsymoff,
    "nindirectsyms" => nindirectsyms,
    "extreloff" => extreloff,
    "nextrel" => nextrel,
    "locreloff" => locreloff,
    "nlocrel" => nlocrel,
  }.merge super
end

#tocoffInteger

Returns the file offset to the table of contents.

Returns:

  • (Integer)

    the file offset to the table of contents



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

field :tocoff, :uint32