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.

Constant Summary collapse

FORMAT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

See Also:

API:

  • private

"L=20".freeze
SIZEOF =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

See Also:

API:

  • private

80

Instance Attribute Summary collapse

Attributes inherited from LoadCommand

#cmd, #cmdsize, #view

Instance Method Summary collapse

Methods inherited from LoadCommand

create, new_from_bin, #offset, #serializable?, #serialize, #to_s, #type

Methods inherited from MachOStructure

bytesize, new_from_bin

Constructor Details

#initialize(view, cmd, cmdsize, ilocalsym, nlocalsym, iextdefsym, nextdefsym, iundefsym, nundefsym, tocoff, ntoc, modtaboff, nmodtab, extrefsymoff, nextrefsyms, indirectsymoff, nindirectsyms, extreloff, nextrel, locreloff, nlocrel) ⇒ DysymtabCommand

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

ugh

API:

  • private



811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
# File 'lib/macho/load_commands.rb', line 811

def initialize(view, cmd, cmdsize, ilocalsym, nlocalsym, iextdefsym,
               nextdefsym, iundefsym, nundefsym, tocoff, ntoc, modtaboff,
               nmodtab, extrefsymoff, nextrefsyms, indirectsymoff,
               nindirectsyms, extreloff, nextrel, locreloff, nlocrel)
  super(view, cmd, cmdsize)
  @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
end

Instance Attribute Details

#extrefsymoffFixnum (readonly)

Returns the file offset to the referenced symbol table.

Returns:

  • the file offset to the referenced symbol table



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

def extrefsymoff
  @extrefsymoff
end

#extreloffFixnum (readonly)

Returns the file offset to the external relocation entries.

Returns:

  • the file offset to the external relocation entries



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

def extreloff
  @extreloff
end

#iextdefsymFixnum (readonly)

Returns the index to externally defined symbols.

Returns:

  • the index to externally defined symbols



754
755
756
# File 'lib/macho/load_commands.rb', line 754

def iextdefsym
  @iextdefsym
end

#ilocalsymFixnum (readonly)

Returns the index to local symbols.

Returns:

  • the index to local symbols



748
749
750
# File 'lib/macho/load_commands.rb', line 748

def ilocalsym
  @ilocalsym
end

#indirectsymoffFixnum (readonly)

Returns the file offset to the indirect symbol table.

Returns:

  • the file offset to the indirect symbol table



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

def indirectsymoff
  @indirectsymoff
end

#iundefsymFixnum (readonly)

Returns the index to undefined symbols.

Returns:

  • the index to undefined symbols



760
761
762
# File 'lib/macho/load_commands.rb', line 760

def iundefsym
  @iundefsym
end

#locreloffFixnum (readonly)

Returns the file offset to the local relocation entries.

Returns:

  • the file offset to the local relocation entries



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

def locreloff
  @locreloff
end

#modtaboffFixnum (readonly)

Returns the file offset to the module table.

Returns:

  • the file offset to the module table



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

def modtaboff
  @modtaboff
end

#nextdefsymFixnum (readonly)

Returns the number of externally defined symbols.

Returns:

  • the number of externally defined symbols



757
758
759
# File 'lib/macho/load_commands.rb', line 757

def nextdefsym
  @nextdefsym
end

#nextrefsymsFixnum (readonly)

Returns the number of entries in the referenced symbol table.

Returns:

  • the number of entries in the referenced symbol table



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

def nextrefsyms
  @nextrefsyms
end

#nextrelFixnum (readonly)

Returns the number of external relocation entries.

Returns:

  • the number of external relocation entries



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

def nextrel
  @nextrel
end

#nindirectsymsFixnum (readonly)

Returns the number of entries in the indirect symbol table.

Returns:

  • the number of entries in the indirect symbol table



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

def nindirectsyms
  @nindirectsyms
end

#nlocalsymFixnum (readonly)

Returns the number of local symbols.

Returns:

  • the number of local symbols



751
752
753
# File 'lib/macho/load_commands.rb', line 751

def nlocalsym
  @nlocalsym
end

#nlocrelFixnum (readonly)

Returns the number of local relocation entries.

Returns:

  • the number of local relocation entries



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

def nlocrel
  @nlocrel
end

#nmodtabFixnum (readonly)

Returns the number of entries in the module table.

Returns:

  • the number of entries in the module table



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

def nmodtab
  @nmodtab
end

#ntocFixnum (readonly)

Returns the number of entries in the table of contents.

Returns:

  • the number of entries in the table of contents



769
770
771
# File 'lib/macho/load_commands.rb', line 769

def ntoc
  @ntoc
end

#nundefsymFixnum (readonly)

Returns the number of undefined symbols.

Returns:

  • the number of undefined symbols



763
764
765
# File 'lib/macho/load_commands.rb', line 763

def nundefsym
  @nundefsym
end

#tocoffFixnum (readonly)

Returns the file offset to the table of contents.

Returns:

  • the file offset to the table of contents



766
767
768
# File 'lib/macho/load_commands.rb', line 766

def tocoff
  @tocoff
end