MCPcopy Create free account
hub / github.com/qilingframework/qiling / LoadSection64

Class LoadSection64

qiling/loader/macho_parser/loadcommand.py:465–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463
464
465class LoadSection64(LoadSection):
466
467 # size 0x50
468 def __init__(self, data):
469 super().__init__(data)
470 self.address = unpack("<Q", self.FR.read(8))[0]
471 self.size = unpack("<Q", self.FR.read(8))[0]
472 self.offset = unpack("<L", self.FR.read(4))[0]
473 self.alignment = unpack("<L", self.FR.read(4))[0]
474 self.relocations_offset = unpack("<L", self.FR.read(4))[0]
475 self.number_of_relocations = unpack("<L", self.FR.read(4))[0]
476 self.flags = unpack("<L", self.FR.read(4))[0]
477 self.reserved1 = unpack("<L", self.FR.read(4))[0]
478 self.reserved2 = unpack("<L", self.FR.read(4))[0]
479 self.reserved3 = unpack("<L", self.FR.read(4))[0]
480
481 # def __str__(self):
482 # return (" Sec64: Section name %s, Seg name %s, addr 0x%X, size 0x%X, offset 0x%X, align 0x%X, rel offset 0x%X, rel num %d, flags 0x%X" % (
483 # self.section_name, self.segment_name, self.address, self.size, self.offset, self.alignment, self.relocations_offset,
484 # self.number_of_relocations, self.flags
485 # ))
486
487
488class LoadEncryptionInfo64(LoadCommand):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected