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:

  • the file offset to the referenced symbol table



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

field :extrefsymoff, :uint32

#extreloffInteger

Returns the file offset to the external relocation entries.

Returns:

  • the file offset to the external relocation entries



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

field :extreloff, :uint32

#iextdefsymInteger

Returns the index to externally defined symbols.

Returns:

  • the index to externally defined symbols



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

field :iextdefsym, :uint32

#ilocalsymInteger

Returns the index to local symbols.

Returns:

  • the index to local symbols



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

field :ilocalsym, :uint32

#indirectsymoffInteger

Returns the file offset to the indirect symbol table.

Returns:

  • the file offset to the indirect symbol table



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

field :indirectsymoff, :uint32

#iundefsymInteger

Returns the index to undefined symbols.

Returns:

  • the index to undefined symbols



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

field :iundefsym, :uint32

#locreloffInteger

Returns the file offset to the local relocation entries.

Returns:

  • the file offset to the local relocation entries



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

field :locreloff, :uint32

#modtaboffInteger

Returns the file offset to the module table.

Returns:

  • the file offset to the module table



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

field :modtaboff, :uint32

#nextdefsymInteger

Returns the number of externally defined symbols.

Returns:

  • the number of externally defined symbols



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

field :nextdefsym, :uint32

#nextrefsymsInteger

Returns the number of entries in the referenced symbol table.

Returns:

  • the number of entries in the referenced symbol table



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

field :nextrefsyms, :uint32

#nextrelInteger

Returns the number of external relocation entries.

Returns:

  • the number of external relocation entries



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

field :nextrel, :uint32

#nindirectsymsInteger

Returns the number of entries in the indirect symbol table.

Returns:

  • the number of entries in the indirect symbol table



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

field :nindirectsyms, :uint32

#nlocalsymInteger

Returns the number of local symbols.

Returns:

  • the number of local symbols



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

field :nlocalsym, :uint32

#nlocrelInteger

Returns the number of local relocation entries.

Returns:

  • the number of local relocation entries



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

field :nlocrel, :uint32

#nmodtabInteger

Returns the number of entries in the module table.

Returns:

  • the number of entries in the module table



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

field :nmodtab, :uint32

#ntocInteger

Returns the number of entries in the table of contents.

Returns:

  • the number of entries in the table of contents



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

field :ntoc, :uint32

#nundefsymInteger

Returns the number of undefined symbols.

Returns:

  • the number of undefined symbols



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

field :nundefsym, :uint32

#to_hHash

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

Returns:



931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
# File 'lib/macho/load_commands.rb', line 931

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:

  • the file offset to the table of contents



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

field :tocoff, :uint32