reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
27 size_t MachOWriter::loadCommandsSize() const { return O.Header.SizeOfCmds; } 30 return O.SymTable.Symbols.size() * 40 if (O.SymTabCommandIndex) { 42 O.LoadCommands[*O.SymTabCommandIndex] 42 O.LoadCommands[*O.SymTabCommandIndex] 49 if (O.DyLdInfoCommandIndex) { 51 O.LoadCommands[*O.DyLdInfoCommandIndex] 51 O.LoadCommands[*O.DyLdInfoCommandIndex] 54 assert((DyLdInfoCommand.rebase_size == O.Rebases.Opcodes.size()) && 59 assert((DyLdInfoCommand.bind_size == O.Binds.Opcodes.size()) && 64 assert((DyLdInfoCommand.weak_bind_size == O.WeakBinds.Opcodes.size()) && 70 assert((DyLdInfoCommand.lazy_bind_size == O.LazyBinds.Opcodes.size()) && 76 assert((DyLdInfoCommand.export_size == O.Exports.Trie.size()) && 82 if (O.DySymTabCommandIndex) { 84 O.LoadCommands[*O.DySymTabCommandIndex] 84 O.LoadCommands[*O.DySymTabCommandIndex] 89 sizeof(uint32_t) * O.IndirectSymTable.Symbols.size()); 92 if (O.DataInCodeCommandIndex) { 94 O.LoadCommands[*O.DataInCodeCommandIndex] 94 O.LoadCommands[*O.DataInCodeCommandIndex] 102 if (O.FunctionStartsCommandIndex) { 104 O.LoadCommands[*O.FunctionStartsCommandIndex] 104 O.LoadCommands[*O.FunctionStartsCommandIndex] 113 for (const auto &LC : O.LoadCommands) 131 Header.magic = O.Header.Magic; 132 Header.cputype = O.Header.CPUType; 133 Header.cpusubtype = O.Header.CPUSubType; 134 Header.filetype = O.Header.FileType; 135 Header.ncmds = O.Header.NCmds; 136 Header.sizeofcmds = O.Header.SizeOfCmds; 137 Header.flags = O.Header.Flags; 138 Header.reserved = O.Header.Reserved; 150 for (const auto &LC : O.LoadCommands) { 230 for (const auto &LC : O.LoadCommands) 274 if (!O.SymTabCommandIndex) 277 O.LoadCommands[*O.SymTabCommandIndex] 277 O.LoadCommands[*O.SymTabCommandIndex] 285 if (!O.SymTabCommandIndex) 288 O.LoadCommands[*O.SymTabCommandIndex] 288 O.LoadCommands[*O.SymTabCommandIndex] 292 for (auto Iter = O.SymTable.Symbols.begin(), End = O.SymTable.Symbols.end(); 292 for (auto Iter = O.SymTable.Symbols.begin(), End = O.SymTable.Symbols.end(); 305 if (!O.DyLdInfoCommandIndex) 308 O.LoadCommands[*O.DyLdInfoCommandIndex] 308 O.LoadCommands[*O.DyLdInfoCommandIndex] 311 assert((DyLdInfoCommand.rebase_size == O.Rebases.Opcodes.size()) && 313 memcpy(Out, O.Rebases.Opcodes.data(), O.Rebases.Opcodes.size()); 313 memcpy(Out, O.Rebases.Opcodes.data(), O.Rebases.Opcodes.size()); 317 if (!O.DyLdInfoCommandIndex) 320 O.LoadCommands[*O.DyLdInfoCommandIndex] 320 O.LoadCommands[*O.DyLdInfoCommandIndex] 323 assert((DyLdInfoCommand.bind_size == O.Binds.Opcodes.size()) && 325 memcpy(Out, O.Binds.Opcodes.data(), O.Binds.Opcodes.size()); 325 memcpy(Out, O.Binds.Opcodes.data(), O.Binds.Opcodes.size()); 329 if (!O.DyLdInfoCommandIndex) 332 O.LoadCommands[*O.DyLdInfoCommandIndex] 332 O.LoadCommands[*O.DyLdInfoCommandIndex] 335 assert((DyLdInfoCommand.weak_bind_size == O.WeakBinds.Opcodes.size()) && 337 memcpy(Out, O.WeakBinds.Opcodes.data(), O.WeakBinds.Opcodes.size()); 337 memcpy(Out, O.WeakBinds.Opcodes.data(), O.WeakBinds.Opcodes.size()); 341 if (!O.DyLdInfoCommandIndex) 344 O.LoadCommands[*O.DyLdInfoCommandIndex] 344 O.LoadCommands[*O.DyLdInfoCommandIndex] 347 assert((DyLdInfoCommand.lazy_bind_size == O.LazyBinds.Opcodes.size()) && 349 memcpy(Out, O.LazyBinds.Opcodes.data(), O.LazyBinds.Opcodes.size()); 349 memcpy(Out, O.LazyBinds.Opcodes.data(), O.LazyBinds.Opcodes.size()); 353 if (!O.DyLdInfoCommandIndex) 356 O.LoadCommands[*O.DyLdInfoCommandIndex] 356 O.LoadCommands[*O.DyLdInfoCommandIndex] 359 assert((DyLdInfoCommand.export_size == O.Exports.Trie.size()) && 361 memcpy(Out, O.Exports.Trie.data(), O.Exports.Trie.size()); 361 memcpy(Out, O.Exports.Trie.data(), O.Exports.Trie.size()); 365 if (!O.DySymTabCommandIndex) 369 O.LoadCommands[*O.DySymTabCommandIndex] 369 O.LoadCommands[*O.DySymTabCommandIndex] 373 assert((DySymTabCommand.nindirectsyms == O.IndirectSymTable.Symbols.size()) && 375 memcpy(Out, O.IndirectSymTable.Symbols.data(), 376 sizeof(uint32_t) * O.IndirectSymTable.Symbols.size()); 380 if (!O.DataInCodeCommandIndex) 383 O.LoadCommands[*O.DataInCodeCommandIndex] 383 O.LoadCommands[*O.DataInCodeCommandIndex] 386 assert((LinkEditDataCommand.datasize == O.DataInCode.Data.size()) && 388 memcpy(Out, O.DataInCode.Data.data(), O.DataInCode.Data.size()); 388 memcpy(Out, O.DataInCode.Data.data(), O.DataInCode.Data.size()); 392 if (!O.FunctionStartsCommandIndex) 395 O.LoadCommands[*O.FunctionStartsCommandIndex] 395 O.LoadCommands[*O.FunctionStartsCommandIndex] 398 assert((LinkEditDataCommand.datasize == O.FunctionStarts.Data.size()) && 400 memcpy(Out, O.FunctionStarts.Data.data(), O.FunctionStarts.Data.size()); 400 memcpy(Out, O.FunctionStarts.Data.data(), O.FunctionStarts.Data.size()); 408 if (O.SymTabCommandIndex) { 410 O.LoadCommands[*O.SymTabCommandIndex] 410 O.LoadCommands[*O.SymTabCommandIndex] 418 if (O.DyLdInfoCommandIndex) { 420 O.LoadCommands[*O.DyLdInfoCommandIndex] 420 O.LoadCommands[*O.DyLdInfoCommandIndex] 438 if (O.DySymTabCommandIndex) { 440 O.LoadCommands[*O.DySymTabCommandIndex] 440 O.LoadCommands[*O.DySymTabCommandIndex] 448 if (O.DataInCodeCommandIndex) { 450 O.LoadCommands[*O.DataInCodeCommandIndex] 450 O.LoadCommands[*O.DataInCodeCommandIndex] 458 if (O.FunctionStartsCommandIndex) { 460 O.LoadCommands[*O.FunctionStartsCommandIndex] 460 O.LoadCommands[*O.FunctionStartsCommandIndex]