parse Mach-O segments and sections