Class: MachO::DyldInfoCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::DyldInfoCommand
- Defined in:
- lib/macho/load_commands.rb
Overview
A load command containing the file offsets and sizes of the new compressed form of the information dyld needs to load the image. Corresponds to LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
Constant Summary collapse
- FORMAT =
"L=12"- SIZEOF =
48
Instance Attribute Summary collapse
-
#bind_off ⇒ Fixnum
readonly
The file offset to the binding information.
-
#bind_size ⇒ Fixnum
readonly
The size of the binding information.
-
#export_off ⇒ Fixnum
readonly
The file offset to the export information.
-
#export_size ⇒ Fixnum
readonly
The size of the export information.
-
#lazy_bind_off ⇒ Fixnum
readonly
The file offset to the lazy binding information.
-
#lazy_bind_size ⇒ Fixnum
readonly
The size of the lazy binding information.
-
#rebase_off ⇒ Fixnum
readonly
The file offset to the rebase information.
-
#rebase_size ⇒ Fixnum
readonly
The size of the rebase information.
-
#weak_bind_off ⇒ Fixnum
readonly
The file offset to the weak binding information.
-
#weak_bind_size ⇒ Fixnum
readonly
The size of the weak binding information.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(raw_data, offset, cmd, cmdsize, rebase_off, rebase_size, bind_off, bind_size, weak_bind_off, weak_bind_size, lazy_bind_off, lazy_bind_size, export_off, export_size) ⇒ DyldInfoCommand
constructor
private
A new instance of DyldInfoCommand.
Methods inherited from LoadCommand
Methods inherited from MachOStructure
Constructor Details
#initialize(raw_data, offset, cmd, cmdsize, rebase_off, rebase_size, bind_off, bind_size, weak_bind_off, weak_bind_size, lazy_bind_off, lazy_bind_size, export_off, export_size) ⇒ DyldInfoCommand
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.
Returns a new instance of DyldInfoCommand.
932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 |
# File 'lib/macho/load_commands.rb', line 932 def initialize(raw_data, offset, cmd, cmdsize, rebase_off, rebase_size, bind_off, bind_size, weak_bind_off, weak_bind_size, lazy_bind_off, lazy_bind_size, export_off, export_size) super(raw_data, offset, cmd, cmdsize) @rebase_off = rebase_off @rebase_size = rebase_size @bind_off = bind_off @bind_size = bind_size @weak_bind_off = weak_bind_off @weak_bind_size = weak_bind_size @lazy_bind_off = lazy_bind_off @lazy_bind_size = lazy_bind_size @export_off = export_off @export_size = export_size end |
Instance Attribute Details
#bind_off ⇒ Fixnum (readonly)
Returns the file offset to the binding information.
905 906 907 |
# File 'lib/macho/load_commands.rb', line 905 def bind_off @bind_off end |
#bind_size ⇒ Fixnum (readonly)
Returns the size of the binding information.
908 909 910 |
# File 'lib/macho/load_commands.rb', line 908 def bind_size @bind_size end |
#export_off ⇒ Fixnum (readonly)
Returns the file offset to the export information.
923 924 925 |
# File 'lib/macho/load_commands.rb', line 923 def export_off @export_off end |
#export_size ⇒ Fixnum (readonly)
Returns the size of the export information.
926 927 928 |
# File 'lib/macho/load_commands.rb', line 926 def export_size @export_size end |
#lazy_bind_off ⇒ Fixnum (readonly)
Returns the file offset to the lazy binding information.
917 918 919 |
# File 'lib/macho/load_commands.rb', line 917 def lazy_bind_off @lazy_bind_off end |
#lazy_bind_size ⇒ Fixnum (readonly)
Returns the size of the lazy binding information.
920 921 922 |
# File 'lib/macho/load_commands.rb', line 920 def lazy_bind_size @lazy_bind_size end |
#rebase_off ⇒ Fixnum (readonly)
Returns the file offset to the rebase information.
899 900 901 |
# File 'lib/macho/load_commands.rb', line 899 def rebase_off @rebase_off end |
#rebase_size ⇒ Fixnum (readonly)
Returns the size of the rebase information.
902 903 904 |
# File 'lib/macho/load_commands.rb', line 902 def rebase_size @rebase_size end |
#weak_bind_off ⇒ Fixnum (readonly)
Returns the file offset to the weak binding information.
911 912 913 |
# File 'lib/macho/load_commands.rb', line 911 def weak_bind_off @weak_bind_off end |
#weak_bind_size ⇒ Fixnum (readonly)
Returns the size of the weak binding information.
914 915 916 |
# File 'lib/macho/load_commands.rb', line 914 def weak_bind_size @weak_bind_size end |