Class: MachO::LoadCommands::DyldInfoCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::LoadCommands::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 =
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=12".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.
48
Instance Attribute Summary collapse
-
#bind_off ⇒ Integer
readonly
The file offset to the binding information.
-
#bind_size ⇒ Integer
readonly
The size of the binding information.
-
#export_off ⇒ Integer
readonly
The file offset to the export information.
-
#export_size ⇒ Integer
readonly
The size of the export information.
-
#lazy_bind_off ⇒ Integer
readonly
The file offset to the lazy binding information.
-
#lazy_bind_size ⇒ Integer
readonly
The size of the lazy binding information.
-
#rebase_off ⇒ Integer
readonly
The file offset to the rebase information.
-
#rebase_size ⇒ Integer
readonly
The size of the rebase information.
-
#weak_bind_off ⇒ Integer
readonly
The file offset to the weak binding information.
-
#weak_bind_size ⇒ Integer
readonly
The size of the weak binding information.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(view, 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
create, new_from_bin, #offset, #serializable?, #serialize, #to_s, #type
Methods inherited from MachOStructure
Constructor Details
#initialize(view, 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.
1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 |
# File 'lib/macho/load_commands.rb', line 1260 def initialize(view, 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(view, 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 ⇒ Integer (readonly)
Returns the file offset to the binding information.
1228 1229 1230 |
# File 'lib/macho/load_commands.rb', line 1228 def bind_off @bind_off end |
#bind_size ⇒ Integer (readonly)
Returns the size of the binding information.
1231 1232 1233 |
# File 'lib/macho/load_commands.rb', line 1231 def bind_size @bind_size end |
#export_off ⇒ Integer (readonly)
Returns the file offset to the export information.
1246 1247 1248 |
# File 'lib/macho/load_commands.rb', line 1246 def export_off @export_off end |
#export_size ⇒ Integer (readonly)
Returns the size of the export information.
1249 1250 1251 |
# File 'lib/macho/load_commands.rb', line 1249 def export_size @export_size end |
#lazy_bind_off ⇒ Integer (readonly)
Returns the file offset to the lazy binding information.
1240 1241 1242 |
# File 'lib/macho/load_commands.rb', line 1240 def lazy_bind_off @lazy_bind_off end |
#lazy_bind_size ⇒ Integer (readonly)
Returns the size of the lazy binding information.
1243 1244 1245 |
# File 'lib/macho/load_commands.rb', line 1243 def lazy_bind_size @lazy_bind_size end |
#rebase_off ⇒ Integer (readonly)
Returns the file offset to the rebase information.
1222 1223 1224 |
# File 'lib/macho/load_commands.rb', line 1222 def rebase_off @rebase_off end |
#rebase_size ⇒ Integer (readonly)
Returns the size of the rebase information.
1225 1226 1227 |
# File 'lib/macho/load_commands.rb', line 1225 def rebase_size @rebase_size end |
#weak_bind_off ⇒ Integer (readonly)
Returns the file offset to the weak binding information.
1234 1235 1236 |
# File 'lib/macho/load_commands.rb', line 1234 def weak_bind_off @weak_bind_off end |
#weak_bind_size ⇒ Integer (readonly)
Returns the size of the weak binding information.
1237 1238 1239 |
# File 'lib/macho/load_commands.rb', line 1237 def weak_bind_size @weak_bind_size end |