Class: MachO::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 Attribute Summary collapse

Attributes inherited from LoadCommand

#cmd, #cmdsize, #offset

Instance Method Summary collapse

Methods inherited from LoadCommand

new_from_bin, #to_s

Methods inherited from MachOStructure

bytesize, new_from_bin

Constructor Details

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

ugh



788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
# File 'lib/macho/load_commands.rb', line 788

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



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

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



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

def extreloff
  @extreloff
end

#iextdefsymFixnum (readonly)

Returns the index to externally defined symbols.

Returns:

  • (Fixnum)

    the index to externally defined symbols



735
736
737
# File 'lib/macho/load_commands.rb', line 735

def iextdefsym
  @iextdefsym
end

#ilocalsymFixnum (readonly)

Returns the index to local symbols.

Returns:

  • (Fixnum)

    the index to local symbols



729
730
731
# File 'lib/macho/load_commands.rb', line 729

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



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

def indirectsymoff
  @indirectsymoff
end

#iundefsymFixnum (readonly)

Returns the index to undefined symbols.

Returns:

  • (Fixnum)

    the index to undefined symbols



741
742
743
# File 'lib/macho/load_commands.rb', line 741

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



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

def locreloff
  @locreloff
end

#modtaboffFixnum (readonly)

Returns the file offset to the module table.

Returns:

  • (Fixnum)

    the file offset to the module table



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

def modtaboff
  @modtaboff
end

#nextdefsymFixnum (readonly)

Returns the number of externally defined symbols.

Returns:

  • (Fixnum)

    the number of externally defined symbols



738
739
740
# File 'lib/macho/load_commands.rb', line 738

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



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

def nextrefsyms
  @nextrefsyms
end

#nextrelFixnum (readonly)

Returns the number of external relocation entries.

Returns:

  • (Fixnum)

    the number of external relocation entries



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

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



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

def nindirectsyms
  @nindirectsyms
end

#nlocalsymFixnum (readonly)

Returns the number of local symbols.

Returns:

  • (Fixnum)

    the number of local symbols



732
733
734
# File 'lib/macho/load_commands.rb', line 732

def nlocalsym
  @nlocalsym
end

#nlocrelFixnum (readonly)

Returns the number of local relocation entries.

Returns:

  • (Fixnum)

    the number of local relocation entries



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

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



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

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



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

def ntoc
  @ntoc
end

#nundefsymFixnum (readonly)

Returns the number of undefined symbols.

Returns:

  • (Fixnum)

    the number of undefined symbols



744
745
746
# File 'lib/macho/load_commands.rb', line 744

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



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

def tocoff
  @tocoff
end