+ _foreach (load_command, framework.GetLoadCommands()) {
+ uint32_t cmd(framework.Swap((*load_command)->cmd));
+ if (cmd == LC_CODE_SIGNATURE) {
+ struct linkedit_data_command *signature = reinterpret_cast<struct linkedit_data_command *>(*load_command);
+ size = framework.Swap(signature->dataoff);
+ _assert(size < framework.GetSize());
+ break;
+ }
+ }
+
+ if (size == _not(size_t))
+ size = framework.GetSize();
+
+ switch (framework->cputype) {
+ case 12: switch (framework->cpusubtype) {
+ case 0: arch = "arm"; break;
+ case 6: arch = "armv6"; break;
+ default: arch = NULL; break;
+ } break;
+
+ default: arch = NULL; break;
+ }