+ // Dump the indirect symbol table.
+ int Res = 0;
+ outs() << " ('_indirect_symbols', [\n";
+ for (unsigned i = 0; i != DLC->NumIndirectSymbolTableEntries; ++i) {
+ InMemoryStruct<macho::IndirectSymbolTableEntry> ISTE;
+ Obj.ReadIndirectSymbolTableEntry(*DLC, i, ISTE);
+ if (!ISTE) {
+ Res = Error("unable to read segment load command");
+ break;
+ }
+
+ outs() << " # Indirect Symbol " << i << "\n";
+ outs() << " (('symbol_index', "
+ << format("%#x", ISTE->Index) << "),),\n";
+ }
+ outs() << " ])\n";
+
+ return Res;