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



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

field :extrefsymoff, :uint32

#extreloffInteger

Returns the file offset to the external relocation entries.

Returns:

  • (Integer)

    the file offset to the external relocation entries



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

field :extreloff, :uint32

#iextdefsymInteger

Returns the index to externally defined symbols.

Returns:

  • (Integer)

    the index to externally defined symbols



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

field :iextdefsym, :uint32

#ilocalsymInteger

Returns the index to local symbols.

Returns:

  • (Integer)

    the index to local symbols



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

field :ilocalsym, :uint32

#indirectsymoffInteger

Returns the file offset to the indirect symbol table.

Returns:

  • (Integer)

    the file offset to the indirect symbol table



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

field :indirectsymoff, :uint32

#iundefsymInteger

Returns the index to undefined symbols.

Returns:

  • (Integer)

    the index to undefined symbols



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

field :iundefsym, :uint32

#locreloffInteger

Returns the file offset to the local relocation entries.

Returns:

  • (Integer)

    the file offset to the local relocation entries



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

field :locreloff, :uint32

#modtaboffInteger

Returns the file offset to the module table.

Returns:

  • (Integer)

    the file offset to the module table



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

field :modtaboff, :uint32

#nextdefsymInteger

Returns the number of externally defined symbols.

Returns:

  • (Integer)

    the number of externally defined symbols



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

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



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

field :nextrefsyms, :uint32

#nextrelInteger

Returns the number of external relocation entries.

Returns:

  • (Integer)

    the number of external relocation entries



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

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



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

field :nindirectsyms, :uint32

#nlocalsymInteger

Returns the number of local symbols.

Returns:

  • (Integer)

    the number of local symbols



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

field :nlocalsym, :uint32

#nlocrelInteger

Returns the number of local relocation entries.

Returns:

  • (Integer)

    the number of local relocation entries



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

field :nlocrel, :uint32

#nmodtabInteger

Returns the number of entries in the module table.

Returns:

  • (Integer)

    the number of entries in the module table



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

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



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

field :ntoc, :uint32

#nundefsymInteger

Returns the number of undefined symbols.

Returns:

  • (Integer)

    the number of undefined symbols



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

field :nundefsym, :uint32

#to_hHash

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

Returns:



925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
# File 'lib/macho/load_commands.rb', line 925

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



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

field :tocoff, :uint32