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 =
"VVVVVVVVVVVVVVVVVVVV"- 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
680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 |
# File 'lib/macho/load_commands.rb', line 680 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.
651 652 653 |
# File 'lib/macho/load_commands.rb', line 651 def extrefsymoff @extrefsymoff end |
#extreloff ⇒ Fixnum (readonly)
Returns the file offset to the external relocation entries.
663 664 665 |
# File 'lib/macho/load_commands.rb', line 663 def extreloff @extreloff end |
#iextdefsym ⇒ Fixnum (readonly)
Returns the index to externally defined symbols.
627 628 629 |
# File 'lib/macho/load_commands.rb', line 627 def iextdefsym @iextdefsym end |
#ilocalsym ⇒ Fixnum (readonly)
Returns the index to local symbols.
621 622 623 |
# File 'lib/macho/load_commands.rb', line 621 def ilocalsym @ilocalsym end |
#indirectsymoff ⇒ Fixnum (readonly)
Returns the file offset to the indirect symbol table.
657 658 659 |
# File 'lib/macho/load_commands.rb', line 657 def indirectsymoff @indirectsymoff end |
#iundefsym ⇒ Fixnum (readonly)
Returns the index to undefined symbols.
633 634 635 |
# File 'lib/macho/load_commands.rb', line 633 def iundefsym @iundefsym end |
#locreloff ⇒ Fixnum (readonly)
Returns the file offset to the local relocation entries.
669 670 671 |
# File 'lib/macho/load_commands.rb', line 669 def locreloff @locreloff end |
#modtaboff ⇒ Fixnum (readonly)
Returns the file offset to the module table.
645 646 647 |
# File 'lib/macho/load_commands.rb', line 645 def modtaboff @modtaboff end |
#nextdefsym ⇒ Fixnum (readonly)
Returns the number of externally defined symbols.
630 631 632 |
# File 'lib/macho/load_commands.rb', line 630 def nextdefsym @nextdefsym end |
#nextrefsyms ⇒ Fixnum (readonly)
Returns the number of entries in the referenced symbol table.
654 655 656 |
# File 'lib/macho/load_commands.rb', line 654 def nextrefsyms @nextrefsyms end |
#nextrel ⇒ Fixnum (readonly)
Returns the number of external relocation entries.
666 667 668 |
# File 'lib/macho/load_commands.rb', line 666 def nextrel @nextrel end |
#nindirectsyms ⇒ Fixnum (readonly)
Returns the number of entries in the indirect symbol table.
660 661 662 |
# File 'lib/macho/load_commands.rb', line 660 def nindirectsyms @nindirectsyms end |
#nlocalsym ⇒ Fixnum (readonly)
Returns the number of local symbols.
624 625 626 |
# File 'lib/macho/load_commands.rb', line 624 def nlocalsym @nlocalsym end |
#nlocrel ⇒ Fixnum (readonly)
Returns the number of local relocation entries.
672 673 674 |
# File 'lib/macho/load_commands.rb', line 672 def nlocrel @nlocrel end |
#nmodtab ⇒ Fixnum (readonly)
Returns the number of entries in the module table.
648 649 650 |
# File 'lib/macho/load_commands.rb', line 648 def nmodtab @nmodtab end |
#ntoc ⇒ Fixnum (readonly)
Returns the number of entries in the table of contents.
642 643 644 |
# File 'lib/macho/load_commands.rb', line 642 def ntoc @ntoc end |
#nundefsym ⇒ Fixnum (readonly)
Returns the number of undefined symbols.
636 637 638 |
# File 'lib/macho/load_commands.rb', line 636 def nundefsym @nundefsym end |
#tocoff ⇒ Fixnum (readonly)
Returns the file offset to the table of contents.
639 640 641 |
# File 'lib/macho/load_commands.rb', line 639 def tocoff @tocoff end |