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.

Constant Summary collapse

FORMAT =
"VVVVVVVVVVVVVVVVVVVV"
SIZEOF =
80

Instance Attribute Summary collapse

Attributes inherited from LoadCommand

#cmd, #cmdsize, #offset

Instance Method Summary collapse

Methods inherited from LoadCommand

new_from_bin, #to_s, #type

Methods inherited from MachOStructure

bytesize, new_from_bin

Constructor Details

#initialize(raw_data, offset, 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



673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
# File 'lib/macho/load_commands.rb', line 673

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



644
645
646
# File 'lib/macho/load_commands.rb', line 644

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



656
657
658
# File 'lib/macho/load_commands.rb', line 656

def extreloff
  @extreloff
end

#iextdefsymFixnum (readonly)

Returns the index to externally defined symbols.

Returns:

  • (Fixnum)

    the index to externally defined symbols



620
621
622
# File 'lib/macho/load_commands.rb', line 620

def iextdefsym
  @iextdefsym
end

#ilocalsymFixnum (readonly)

Returns the index to local symbols.

Returns:

  • (Fixnum)

    the index to local symbols



614
615
616
# File 'lib/macho/load_commands.rb', line 614

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



650
651
652
# File 'lib/macho/load_commands.rb', line 650

def indirectsymoff
  @indirectsymoff
end

#iundefsymFixnum (readonly)

Returns the index to undefined symbols.

Returns:

  • (Fixnum)

    the index to undefined symbols



626
627
628
# File 'lib/macho/load_commands.rb', line 626

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



662
663
664
# File 'lib/macho/load_commands.rb', line 662

def locreloff
  @locreloff
end

#modtaboffFixnum (readonly)

Returns the file offset to the module table.

Returns:

  • (Fixnum)

    the file offset to the module table



638
639
640
# File 'lib/macho/load_commands.rb', line 638

def modtaboff
  @modtaboff
end

#nextdefsymFixnum (readonly)

Returns the number of externally defined symbols.

Returns:

  • (Fixnum)

    the number of externally defined symbols



623
624
625
# File 'lib/macho/load_commands.rb', line 623

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



647
648
649
# File 'lib/macho/load_commands.rb', line 647

def nextrefsyms
  @nextrefsyms
end

#nextrelFixnum (readonly)

Returns the number of external relocation entries.

Returns:

  • (Fixnum)

    the number of external relocation entries



659
660
661
# File 'lib/macho/load_commands.rb', line 659

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



653
654
655
# File 'lib/macho/load_commands.rb', line 653

def nindirectsyms
  @nindirectsyms
end

#nlocalsymFixnum (readonly)

Returns the number of local symbols.

Returns:

  • (Fixnum)

    the number of local symbols



617
618
619
# File 'lib/macho/load_commands.rb', line 617

def nlocalsym
  @nlocalsym
end

#nlocrelFixnum (readonly)

Returns the number of local relocation entries.

Returns:

  • (Fixnum)

    the number of local relocation entries



665
666
667
# File 'lib/macho/load_commands.rb', line 665

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



641
642
643
# File 'lib/macho/load_commands.rb', line 641

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



635
636
637
# File 'lib/macho/load_commands.rb', line 635

def ntoc
  @ntoc
end

#nundefsymFixnum (readonly)

Returns the number of undefined symbols.

Returns:

  • (Fixnum)

    the number of undefined symbols



629
630
631
# File 'lib/macho/load_commands.rb', line 629

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



632
633
634
# File 'lib/macho/load_commands.rb', line 632

def tocoff
  @tocoff
end