this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix bogus "no libSystem loaded" warnings

+8 -3
+8 -3
src/libdyld/MachOObject.cpp
··· 478 478 { 479 479 std::vector<const char*> dylibs = m_file->dylibs(); 480 480 std::string path; 481 + const char* libsystem_dylib = "/usr/lib/libSystem.B.dylib"; 481 482 482 483 // libSystem MUST always be loaded first 483 484 // This is essentially a hack, but it should be safe. 484 485 LoadableObject* libSystem; 485 486 486 - path = DylibSearch::instance()->resolve("/usr/lib/libSystem.B.dylib", this); 487 + path = DylibSearch::instance()->resolve(libsystem_dylib, this); 487 488 libSystem = LoadableObject::instantiateForPath(path, this); 488 489 libSystem->load(); 489 490 ··· 497 498 continue; 498 499 } 499 500 500 - std::string path = DylibSearch::instance()->resolve(dylib, this); 501 + path = DylibSearch::instance()->resolve(dylib, this); 501 502 if (path.empty()) 502 503 { 503 504 std::stringstream ss; ··· 505 506 throw std::runtime_error(ss.str()); 506 507 } 507 508 508 - dep = MachOMgr::instance()->lookup(path); 509 + if (path == libSystem->path()) 510 + dep = libSystem; 511 + else 512 + dep = MachOMgr::instance()->lookup(path); 513 + 509 514 if (dep != nullptr) 510 515 { 511 516 dep->addRef();