Class: MachO::DysymtabCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::DysymtabCommand
- 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 =
"L=20"- SIZEOF =
80
Instance Attribute Summary collapse
-
#extrefsymoff ⇒ Fixnum
readonly
The file offset to the referenced symbol table.
-
#extreloff ⇒ Fixnum
readonly
The file offset to the external relocation entries.
-
#iextdefsym ⇒ Fixnum
readonly
The index to externally defined symbols.
-
#ilocalsym ⇒ Fixnum
readonly
The index to local symbols.
-
#indirectsymoff ⇒ Fixnum
readonly
The file offset to the indirect symbol table.
-
#iundefsym ⇒ Fixnum
readonly
The index to undefined symbols.
-
#locreloff ⇒ Fixnum
readonly
The file offset to the local relocation entries.
-
#modtaboff ⇒ Fixnum
readonly
The file offset to the module table.
-
#nextdefsym ⇒ Fixnum
readonly
The number of externally defined symbols.
-
#nextrefsyms ⇒ Fixnum
readonly
The number of entries in the referenced symbol table.
-
#nextrel ⇒ Fixnum
readonly
The number of external relocation entries.
-
#nindirectsyms ⇒ Fixnum
readonly
The number of entries in the indirect symbol table.
-
#nlocalsym ⇒ Fixnum
readonly
The number of local symbols.
-
#nlocrel ⇒ Fixnum
readonly
The number of local relocation entries.
-
#nmodtab ⇒ Fixnum
readonly
The number of entries in the module table.
-
#ntoc ⇒ Fixnum
readonly
The number of entries in the table of contents.
-
#nundefsym ⇒ Fixnum
readonly
The number of undefined symbols.
-
#tocoff ⇒ Fixnum
readonly
The file offset to the table of contents.
Attributes inherited from LoadCommand
Instance Method Summary collapse
Methods inherited from LoadCommand
Methods inherited from MachOStructure
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
700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 |
# File 'lib/macho/load_commands.rb', line 700 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
#extrefsymoff ⇒ Fixnum (readonly)
Returns the file offset to the referenced symbol table.
671 672 673 |
# File 'lib/macho/load_commands.rb', line 671 def extrefsymoff @extrefsymoff end |
#extreloff ⇒ Fixnum (readonly)
Returns the file offset to the external relocation entries.
683 684 685 |
# File 'lib/macho/load_commands.rb', line 683 def extreloff @extreloff end |
#iextdefsym ⇒ Fixnum (readonly)
Returns the index to externally defined symbols.
647 648 649 |
# File 'lib/macho/load_commands.rb', line 647 def iextdefsym @iextdefsym end |
#ilocalsym ⇒ Fixnum (readonly)
Returns the index to local symbols.
641 642 643 |
# File 'lib/macho/load_commands.rb', line 641 def ilocalsym @ilocalsym end |
#indirectsymoff ⇒ Fixnum (readonly)
Returns the file offset to the indirect symbol table.
677 678 679 |
# File 'lib/macho/load_commands.rb', line 677 def indirectsymoff @indirectsymoff end |
#iundefsym ⇒ Fixnum (readonly)
Returns the index to undefined symbols.
653 654 655 |
# File 'lib/macho/load_commands.rb', line 653 def iundefsym @iundefsym end |
#locreloff ⇒ Fixnum (readonly)
Returns the file offset to the local relocation entries.
689 690 691 |
# File 'lib/macho/load_commands.rb', line 689 def locreloff @locreloff end |
#modtaboff ⇒ Fixnum (readonly)
Returns the file offset to the module table.
665 666 667 |
# File 'lib/macho/load_commands.rb', line 665 def modtaboff @modtaboff end |
#nextdefsym ⇒ Fixnum (readonly)
Returns the number of externally defined symbols.
650 651 652 |
# File 'lib/macho/load_commands.rb', line 650 def nextdefsym @nextdefsym end |
#nextrefsyms ⇒ Fixnum (readonly)
Returns the number of entries in the referenced symbol table.
674 675 676 |
# File 'lib/macho/load_commands.rb', line 674 def nextrefsyms @nextrefsyms end |
#nextrel ⇒ Fixnum (readonly)
Returns the number of external relocation entries.
686 687 688 |
# File 'lib/macho/load_commands.rb', line 686 def nextrel @nextrel end |
#nindirectsyms ⇒ Fixnum (readonly)
Returns the number of entries in the indirect symbol table.
680 681 682 |
# File 'lib/macho/load_commands.rb', line 680 def nindirectsyms @nindirectsyms end |
#nlocalsym ⇒ Fixnum (readonly)
Returns the number of local symbols.
644 645 646 |
# File 'lib/macho/load_commands.rb', line 644 def nlocalsym @nlocalsym end |
#nlocrel ⇒ Fixnum (readonly)
Returns the number of local relocation entries.
692 693 694 |
# File 'lib/macho/load_commands.rb', line 692 def nlocrel @nlocrel end |
#nmodtab ⇒ Fixnum (readonly)
Returns the number of entries in the module table.
668 669 670 |
# File 'lib/macho/load_commands.rb', line 668 def nmodtab @nmodtab end |
#ntoc ⇒ Fixnum (readonly)
Returns the number of entries in the table of contents.
662 663 664 |
# File 'lib/macho/load_commands.rb', line 662 def ntoc @ntoc end |
#nundefsym ⇒ Fixnum (readonly)
Returns the number of undefined symbols.
656 657 658 |
# File 'lib/macho/load_commands.rb', line 656 def nundefsym @nundefsym end |
#tocoff ⇒ Fixnum (readonly)
Returns the file offset to the table of contents.
659 660 661 |
# File 'lib/macho/load_commands.rb', line 659 def tocoff @tocoff end |