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 =
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
-
#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
create, new_from_bin, #offset, #serializable?, #serialize, #to_s, #type
Methods inherited from MachOStructure
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
809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 |
# File 'lib/macho/load_commands.rb', line 809 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
#extrefsymoff ⇒ Fixnum (readonly)
Returns the file offset to the referenced symbol table.
776 777 778 |
# File 'lib/macho/load_commands.rb', line 776 def extrefsymoff @extrefsymoff end |
#extreloff ⇒ Fixnum (readonly)
Returns the file offset to the external relocation entries.
788 789 790 |
# File 'lib/macho/load_commands.rb', line 788 def extreloff @extreloff end |
#iextdefsym ⇒ Fixnum (readonly)
Returns the index to externally defined symbols.
752 753 754 |
# File 'lib/macho/load_commands.rb', line 752 def iextdefsym @iextdefsym end |
#ilocalsym ⇒ Fixnum (readonly)
Returns the index to local symbols.
746 747 748 |
# File 'lib/macho/load_commands.rb', line 746 def ilocalsym @ilocalsym end |
#indirectsymoff ⇒ Fixnum (readonly)
Returns the file offset to the indirect symbol table.
782 783 784 |
# File 'lib/macho/load_commands.rb', line 782 def indirectsymoff @indirectsymoff end |
#iundefsym ⇒ Fixnum (readonly)
Returns the index to undefined symbols.
758 759 760 |
# File 'lib/macho/load_commands.rb', line 758 def iundefsym @iundefsym end |
#locreloff ⇒ Fixnum (readonly)
Returns the file offset to the local relocation entries.
794 795 796 |
# File 'lib/macho/load_commands.rb', line 794 def locreloff @locreloff end |
#modtaboff ⇒ Fixnum (readonly)
Returns the file offset to the module table.
770 771 772 |
# File 'lib/macho/load_commands.rb', line 770 def modtaboff @modtaboff end |
#nextdefsym ⇒ Fixnum (readonly)
Returns the number of externally defined symbols.
755 756 757 |
# File 'lib/macho/load_commands.rb', line 755 def nextdefsym @nextdefsym end |
#nextrefsyms ⇒ Fixnum (readonly)
Returns the number of entries in the referenced symbol table.
779 780 781 |
# File 'lib/macho/load_commands.rb', line 779 def nextrefsyms @nextrefsyms end |
#nextrel ⇒ Fixnum (readonly)
Returns the number of external relocation entries.
791 792 793 |
# File 'lib/macho/load_commands.rb', line 791 def nextrel @nextrel end |
#nindirectsyms ⇒ Fixnum (readonly)
Returns the number of entries in the indirect symbol table.
785 786 787 |
# File 'lib/macho/load_commands.rb', line 785 def nindirectsyms @nindirectsyms end |
#nlocalsym ⇒ Fixnum (readonly)
Returns the number of local symbols.
749 750 751 |
# File 'lib/macho/load_commands.rb', line 749 def nlocalsym @nlocalsym end |
#nlocrel ⇒ Fixnum (readonly)
Returns the number of local relocation entries.
797 798 799 |
# File 'lib/macho/load_commands.rb', line 797 def nlocrel @nlocrel end |
#nmodtab ⇒ Fixnum (readonly)
Returns the number of entries in the module table.
773 774 775 |
# File 'lib/macho/load_commands.rb', line 773 def nmodtab @nmodtab end |
#ntoc ⇒ Fixnum (readonly)
Returns the number of entries in the table of contents.
767 768 769 |
# File 'lib/macho/load_commands.rb', line 767 def ntoc @ntoc end |
#nundefsym ⇒ Fixnum (readonly)
Returns the number of undefined symbols.
761 762 763 |
# File 'lib/macho/load_commands.rb', line 761 def nundefsym @nundefsym end |
#tocoff ⇒ Fixnum (readonly)
Returns the file offset to the table of contents.
764 765 766 |
# File 'lib/macho/load_commands.rb', line 764 def tocoff @tocoff end |