Skip to content

Commit 44ca620

Browse files
committed
load_commands: add LC_LAZY_LOAD_DYLIB_INFO
1 parent f854ca0 commit 44ca620

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/macho/load_commands.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ module LoadCommands
6969
0x37 => :LC_FUNCTION_VARIANTS,
7070
0x38 => :LC_FUNCTION_VARIANT_FIXUPS,
7171
0x39 => :LC_TARGET_TRIPLE,
72+
0x3a => :LC_LAZY_LOAD_DYLIB_INFO,
7273
}.freeze
7374

7475
# association of symbol representations to load command constants
@@ -161,6 +162,7 @@ module LoadCommands
161162
:LC_FUNCTION_VARIANTS => "LinkeditDataCommand",
162163
:LC_FUNCTION_VARIANT_FIXUPS => "LinkeditDataCommand",
163164
:LC_TARGET_TRIPLE => "TargetTripleCommand",
165+
:LC_LAZY_LOAD_DYLIB_INFO => "LinkeditDataCommand",
164166
}.freeze
165167

166168
# association of segment name symbols to names
@@ -1078,7 +1080,7 @@ def to_h
10781080
# LC_SEGMENT_SPLIT_INFO, LC_FUNCTION_STARTS, LC_DATA_IN_CODE,
10791081
# LC_DYLIB_CODE_SIGN_DRS, LC_LINKER_OPTIMIZATION_HINT, LC_DYLD_EXPORTS_TRIE,
10801082
# LC_DYLD_CHAINED_FIXUPS, LC_ATOM_INFO, LC_FUNCTION_VARIANTS,
1081-
# or LC_FUNCTION_VARIANT_FIXUPS.
1083+
# LC_FUNCTION_VARIANT_FIXUPS, or LC_LAZY_LOAD_DYLIB_INFO.
10821084
class LinkeditDataCommand < LoadCommand
10831085
# @return [Integer] offset to the data in the __LINKEDIT segment
10841086
field :dataoff, :uint32

0 commit comments

Comments
 (0)