Class: MachO::LoadCommands::DysymtabCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::LoadCommands::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"- 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 ⇒ Integer
readonly
The file offset to the referenced symbol table.
-
#extreloff ⇒ Integer
readonly
The file offset to the external relocation entries.
-
#iextdefsym ⇒ Integer
readonly
The index to externally defined symbols.
-
#ilocalsym ⇒ Integer
readonly
The index to local symbols.
-
#indirectsymoff ⇒ Integer
readonly
The file offset to the indirect symbol table.
-
#iundefsym ⇒ Integer
readonly
The index to undefined symbols.
-
#locreloff ⇒ Integer
readonly
The file offset to the local relocation entries.
-
#modtaboff ⇒ Integer
readonly
The file offset to the module table.
-
#nextdefsym ⇒ Integer
readonly
The number of externally defined symbols.
-
#nextrefsyms ⇒ Integer
readonly
The number of entries in the referenced symbol table.
-
#nextrel ⇒ Integer
readonly
The number of external relocation entries.
-
#nindirectsyms ⇒ Integer
readonly
The number of entries in the indirect symbol table.
-
#nlocalsym ⇒ Integer
readonly
The number of local symbols.
-
#nlocrel ⇒ Integer
readonly
The number of local relocation entries.
-
#nmodtab ⇒ Integer
readonly
The number of entries in the module table.
-
#ntoc ⇒ Integer
readonly
The number of entries in the table of contents.
-
#nundefsym ⇒ Integer
readonly
The number of undefined symbols.
-
#tocoff ⇒ Integer
readonly
The file offset to the table of contents.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(view, cmd, cmdsize, ilocalsym, nlocalsym, iextdefsym, nextdefsym, iundefsym, nundefsym, tocoff, ntoc, modtaboff, nmodtab, extrefsymoff, nextrefsyms, indirectsymoff, nindirectsyms, extreloff, nextrel, locreloff, nlocrel) ⇒ DysymtabCommand
constructor
private
ugh.
-
#to_h ⇒ Hash
A hash representation of this DysymtabCommand.
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
1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 |
# File 'lib/macho/load_commands.rb', line 1000 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 ⇒ Integer (readonly)
Returns the file offset to the referenced symbol table.
967 968 969 |
# File 'lib/macho/load_commands.rb', line 967 def extrefsymoff @extrefsymoff end |
#extreloff ⇒ Integer (readonly)
Returns the file offset to the external relocation entries.
979 980 981 |
# File 'lib/macho/load_commands.rb', line 979 def extreloff @extreloff end |
#iextdefsym ⇒ Integer (readonly)
Returns the index to externally defined symbols.
943 944 945 |
# File 'lib/macho/load_commands.rb', line 943 def iextdefsym @iextdefsym end |
#ilocalsym ⇒ Integer (readonly)
Returns the index to local symbols.
937 938 939 |
# File 'lib/macho/load_commands.rb', line 937 def ilocalsym @ilocalsym end |
#indirectsymoff ⇒ Integer (readonly)
Returns the file offset to the indirect symbol table.
973 974 975 |
# File 'lib/macho/load_commands.rb', line 973 def indirectsymoff @indirectsymoff end |
#iundefsym ⇒ Integer (readonly)
Returns the index to undefined symbols.
949 950 951 |
# File 'lib/macho/load_commands.rb', line 949 def iundefsym @iundefsym end |
#locreloff ⇒ Integer (readonly)
Returns the file offset to the local relocation entries.
985 986 987 |
# File 'lib/macho/load_commands.rb', line 985 def locreloff @locreloff end |
#modtaboff ⇒ Integer (readonly)
Returns the file offset to the module table.
961 962 963 |
# File 'lib/macho/load_commands.rb', line 961 def modtaboff @modtaboff end |
#nextdefsym ⇒ Integer (readonly)
Returns the number of externally defined symbols.
946 947 948 |
# File 'lib/macho/load_commands.rb', line 946 def nextdefsym @nextdefsym end |
#nextrefsyms ⇒ Integer (readonly)
Returns the number of entries in the referenced symbol table.
970 971 972 |
# File 'lib/macho/load_commands.rb', line 970 def nextrefsyms @nextrefsyms end |
#nextrel ⇒ Integer (readonly)
Returns the number of external relocation entries.
982 983 984 |
# File 'lib/macho/load_commands.rb', line 982 def nextrel @nextrel end |
#nindirectsyms ⇒ Integer (readonly)
Returns the number of entries in the indirect symbol table.
976 977 978 |
# File 'lib/macho/load_commands.rb', line 976 def nindirectsyms @nindirectsyms end |
#nlocalsym ⇒ Integer (readonly)
Returns the number of local symbols.
940 941 942 |
# File 'lib/macho/load_commands.rb', line 940 def nlocalsym @nlocalsym end |
#nlocrel ⇒ Integer (readonly)
Returns the number of local relocation entries.
988 989 990 |
# File 'lib/macho/load_commands.rb', line 988 def nlocrel @nlocrel end |
#nmodtab ⇒ Integer (readonly)
Returns the number of entries in the module table.
964 965 966 |
# File 'lib/macho/load_commands.rb', line 964 def nmodtab @nmodtab end |
#ntoc ⇒ Integer (readonly)
Returns the number of entries in the table of contents.
958 959 960 |
# File 'lib/macho/load_commands.rb', line 958 def ntoc @ntoc end |
#nundefsym ⇒ Integer (readonly)
Returns the number of undefined symbols.
952 953 954 |
# File 'lib/macho/load_commands.rb', line 952 def nundefsym @nundefsym end |
#tocoff ⇒ Integer (readonly)
Returns the file offset to the table of contents.
955 956 957 |
# File 'lib/macho/load_commands.rb', line 955 def tocoff @tocoff end |
Instance Method Details
#to_h ⇒ Hash
Returns a hash representation of this MachO::LoadCommands::DysymtabCommand.
1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 |
# File 'lib/macho/load_commands.rb', line 1026 def to_h { "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, }.merge super end |