File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
src/launchpad/parsers/apple Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -318,29 +318,23 @@ def extract_linkedit_info(self) -> LinkEditInfo:
318318 ]
319319 entry_size = 16 if is_64bit else 12
320320
321- # Extract from load commands
322321 for cmd in self .binary .commands :
323322 if isinstance (cmd , lief .MachO .SymbolCommand ):
324- # LC_SYMTAB: symbol table + string table
325323 symbol_table_size = cmd .numberof_symbols * entry_size
326324 string_table_size = cmd .strings_size
327325 elif isinstance (cmd , lief .MachO .FunctionStarts ):
328- # LC_FUNCTION_STARTS
329326 function_starts_size = cmd .data_size
330327
331- # Extract DYLD info
332328 dyld_chained_fixups = self .binary .dyld_chained_fixups
333329 dyld_exports_trie = self .binary .dyld_exports_trie
334330 chained_fixups_size = dyld_chained_fixups .data_size if dyld_chained_fixups else 0
335331 export_trie_size = dyld_exports_trie .data_size if dyld_exports_trie else 0
336332
337- # Extract code signature
338333 if self .binary .has_code_signature :
339334 cs = self .binary .code_signature
340335 code_signature_size = cs .data_size
341336 code_signature_offset = cs .data_offset
342337
343- # Get __LINKEDIT segment size
344338 for segment in self .binary .segments :
345339 if segment .name == "__LINKEDIT" :
346340 segment_size = segment .file_size
You can’t perform that action at this time.
0 commit comments