Lines Matching defs:Load
61 "Number of sections too large for size of load command.");
261 MachOObjectFile::LoadCommandInfo Load = getFirstLoadCommandInfo();
263 if (Load.C.cmd == MachO::LC_SYMTAB) {
269 SymtabLoadCmd = Load.Ptr;
270 } else if (Load.C.cmd == MachO::LC_DYSYMTAB) {
276 DysymtabLoadCmd = Load.Ptr;
277 } else if (Load.C.cmd == MachO::LC_DATA_IN_CODE) {
283 DataInCodeLoadCmd = Load.Ptr;
284 } else if (Load.C.cmd == MachO::LC_LINKER_OPTIMIZATION_HINT) {
290 LinkOptHintsLoadCmd = Load.Ptr;
291 } else if (Load.C.cmd == MachO::LC_DYLD_INFO ||
292 Load.C.cmd == MachO::LC_DYLD_INFO_ONLY) {
293 // Multiple dyldinfo load commands
298 DyldInfoLoadCmd = Load.Ptr;
299 } else if (Load.C.cmd == MachO::LC_UUID) {
300 // Multiple UUID load commands
305 UuidLoadCmd = Load.Ptr;
306 } else if (Load.C.cmd == SegmentLoadType) {
310 if (Load.C.cmdsize < SegmentLoadSize)
311 report_fatal_error("Segment load command size is too small.");
313 uint32_t NumSections = getSegmentLoadCommandNumSections(this, Load);
315 const char *Sec = getSectionPtr(this, Load, J);
318 if (isPageZeroSegment(this, Load))
320 } else if (Load.C.cmd == MachO::LC_LOAD_DYLIB ||
321 Load.C.cmd == MachO::LC_LOAD_WEAK_DYLIB ||
322 Load.C.cmd == MachO::LC_LAZY_LOAD_DYLIB ||
323 Load.C.cmd == MachO::LC_REEXPORT_DYLIB ||
324 Load.C.cmd == MachO::LC_LOAD_UPWARD_DYLIB) {
325 Libraries.push_back(Load.Ptr);
331 Load = getNextLoadCommandInfo(Load);
442 // symbols from load command
2239 MachOObjectFile::LoadCommandInfo Load;
2243 Load.Ptr = getPtr(this, HeaderSize);
2244 Load.C = getStruct<MachO::load_command>(this, Load.Ptr);
2245 if (Load.C.cmdsize < 8)
2246 report_fatal_error("Load command with size < 8 bytes.");
2247 return Load;
2256 report_fatal_error("Load command with size < 8 bytes.");
2454 // If there is no SymtabLoadCmd return a load command with zero'ed fields.
2469 // If there is no DysymtabLoadCmd return a load command with zero'ed fields.
2499 // If there is no DataInCodeLoadCmd return a load command with zero'ed fields.
2513 // If there is no LinkOptHintsLoadCmd return a load command with zero'ed