def __init__(self, abi): from peachpy.formats.macho.section import Segment, TextSection, ConstSection, StringTable, SymbolTable self.abi = abi self.segments = list() self.text_segment = Segment("__TEXT") self.add_segment(self.text_segment) self.text_section = TextSection() self.text_segment.add_section(self.text_section) self.const_section = ConstSection() self.text_segment.add_section(self.const_section) self.string_table = StringTable() self.symbol_table = SymbolTable(self.string_table)