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.

"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.

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



839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
# File 'lib/macho/load_commands.rb', line 839

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:

  • (Fixnum)

    the file offset to the referenced symbol table



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

def extrefsymoff
  @extrefsymoff
end

#extreloffFixnum (readonly)

Returns the file offset to the external relocation entries.

Returns:

  • (Fixnum)

    the file offset to the external relocation entries



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

def extreloff
  @extreloff
end

#iextdefsymFixnum (readonly)

Returns the index to externally defined symbols.

Returns:

  • (Fixnum)

    the index to externally defined symbols



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

def iextdefsym
  @iextdefsym
end

#ilocalsymFixnum (readonly)

Returns the index to local symbols.

Returns:

  • (Fixnum)

    the index to local symbols



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

def ilocalsym
  @ilocalsym
end

#indirectsymoffFixnum (readonly)

Returns the file offset to the indirect symbol table.

Returns:

  • (Fixnum)

    the file offset to the indirect symbol table



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

def indirectsymoff
  @indirectsymoff
end

#iundefsymFixnum (readonly)

Returns the index to undefined symbols.

Returns:

  • (Fixnum)

    the index to undefined symbols



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

def iundefsym
  @iundefsym
end

#locreloffFixnum (readonly)

Returns the file offset to the local relocation entries.

Returns:

  • (Fixnum)

    the file offset to the local relocation entries



824
825
826
# File 'lib/macho/load_commands.rb', line 824

def locreloff
  @locreloff
end

#modtaboffFixnum (readonly)

Returns the file offset to the module table.

Returns:

  • (Fixnum)

    the file offset to the module table



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

def modtaboff
  @modtaboff
end

#nextdefsymFixnum (readonly)

Returns the number of externally defined symbols.

Returns:

  • (Fixnum)

    the number of externally defined symbols



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

def nextdefsym
  @nextdefsym
end

#nextrefsymsFixnum (readonly)

Returns the number of entries in the referenced symbol table.

Returns:

  • (Fixnum)

    the number of entries in the referenced symbol table



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

def nextrefsyms
  @nextrefsyms
end

#nextrelFixnum (readonly)

Returns the number of external relocation entries.

Returns:

  • (Fixnum)

    the number of external relocation entries



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

def nextrel
  @nextrel
end

#nindirectsymsFixnum (readonly)

Returns the number of entries in the indirect symbol table.

Returns:

  • (Fixnum)

    the number of entries in the indirect symbol table



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

def nindirectsyms
  @nindirectsyms
end

#nlocalsymFixnum (readonly)

Returns the number of local symbols.

Returns:

  • (Fixnum)

    the number of local symbols



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

def nlocalsym
  @nlocalsym
end

#nlocrelFixnum (readonly)

Returns the number of local relocation entries.

Returns:

  • (Fixnum)

    the number of local relocation entries



827
828
829
# File 'lib/macho/load_commands.rb', line 827

def nlocrel
  @nlocrel
end

#nmodtabFixnum (readonly)

Returns the number of entries in the module table.

Returns:

  • (Fixnum)

    the number of entries in the module table



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

def nmodtab
  @nmodtab
end

#ntocFixnum (readonly)

Returns the number of entries in the table of contents.

Returns:

  • (Fixnum)

    the number of entries in the table of contents



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

def ntoc
  @ntoc
end

#nundefsymFixnum (readonly)

Returns the number of undefined symbols.

Returns:

  • (Fixnum)

    the number of undefined symbols



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

def nundefsym
  @nundefsym
end

#tocoffFixnum (readonly)

Returns the file offset to the table of contents.

Returns:

  • (Fixnum)

    the file offset to the table of contents



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

def tocoff
  @tocoff
end