Searched refs:macho_header (Results 1 - 24 of 24) sorted by relevance

/macosx-10.10.1/dyld-353.2.1/src/
H A DdyldInitialization.cpp98 static void runDyldInitializers(const struct macho_header* mh, intptr_t slide, int argc, const char* argv[], const char* envp[], const char* apple[])
110 static uintptr_t slideOfMainExecutable(const struct macho_header* mh)
113 const struct load_command* const cmds = (struct load_command*)(((char*)mh)+sizeof(macho_header));
132 static void rebaseDyld(const struct macho_header* mh, intptr_t slide)
137 const struct load_command* const cmds = (struct load_command*)(((char*)mh)+sizeof(macho_header));
206 uintptr_t start(const struct macho_header* appsMachHeader, int argc, const char* argv[],
207 intptr_t slide, const struct macho_header* dyldsMachHeader,
244 const macho_header* mainExecutableMH, const macho_header* dyldMH, uintptr_t dyldSlide,
249 const macho_header* mainExecutableM
[all...]
H A DImageLoaderMachO.cpp84 ImageLoaderMachO::ImageLoaderMachO(const macho_header* mh, const char* path, unsigned int segCount,
104 const struct load_command* const cmds = (struct load_command*)&fMachOData[sizeof(macho_header)];
122 void ImageLoaderMachO::sniffLoadCommands(const macho_header* mh, const char* path, bool* compressed,
137 const struct load_command* const startCmds = (struct load_command*)(((uint8_t*)mh) + sizeof(macho_header));
138 const struct load_command* const endCmds = (struct load_command*)(((uint8_t*)mh) + sizeof(macho_header) + mh->sizeofcmds);
163 if ( (segCmd->fileoff != 0) || (segCmd->filesize < (mh->sizeofcmds+sizeof(macho_header))) )
232 ImageLoader* ImageLoaderMachO::instantiateMainExecutable(const macho_header* mh, uintptr_t slide, const char* path, const LinkContext& context)
258 const unsigned int dataSize = sizeof(macho_header) + ((macho_header*)firstPage)->sizeofcmds;
272 sniffLoadCommands((const macho_header*)fileDat
[all...]
H A DdyldExceptions.c45 #define macho_header mach_header_64 macro
51 #define macho_header mach_header macro
H A DImageLoaderMachOClassic.h40 static ImageLoaderMachOClassic* instantiateMainExecutable(const macho_header* mh, uintptr_t slide, const char* path,
46 static ImageLoaderMachOClassic* instantiateFromCache(const macho_header* mh, const char* path, long slide, const struct stat& info,
48 static ImageLoaderMachOClassic* instantiateFromMemory(const char* moduleName, const macho_header* mh, uint64_t len,
92 ImageLoaderMachOClassic(const macho_header* mh, const char* path, unsigned int segCount,
94 static ImageLoaderMachOClassic* instantiateStart(const macho_header* mh, const char* path, unsigned int segCount, unsigned int libCount);
H A DImageLoaderMachOCompressed.h40 static ImageLoaderMachOCompressed* instantiateMainExecutable(const macho_header* mh, uintptr_t slide, const char* path,
46 static ImageLoaderMachOCompressed* instantiateFromCache(const macho_header* mh, const char* path, long slide, const struct stat& info,
48 static ImageLoaderMachOCompressed* instantiateFromMemory(const char* moduleName, const macho_header* mh, uint64_t len,
105 ImageLoaderMachOCompressed(const macho_header* mh, const char* path, unsigned int segCount,
107 static ImageLoaderMachOCompressed* instantiateStart(const macho_header* mh, const char* path, unsigned int segCount, unsigned int libCount);
H A DImageLoaderMachO.h43 static ImageLoader* instantiateMainExecutable(const macho_header* mh, uintptr_t slide, const char* path, const LinkContext& context);
46 static ImageLoader* instantiateFromCache(const macho_header* mh, const char* path, long slide, const struct stat& info, const LinkContext& context);
47 static ImageLoader* instantiateFromMemory(const char* moduleName, const macho_header* mh, uint64_t len, const LinkContext& context);
112 ImageLoaderMachO(const macho_header* mh, const char* path, unsigned int segCount,
159 static void sniffLoadCommands(const macho_header* mh, const char* path, bool* compressed,
162 static bool needsAddedLibSystemDepency(unsigned int libCount, const macho_header* mh);
H A DImageLoaderMachOClassic.cpp89 ImageLoaderMachOClassic* ImageLoaderMachOClassic::instantiateMainExecutable(const macho_header* mh, uintptr_t slide, const char* path,
134 ImageLoaderMachOClassic* image = ImageLoaderMachOClassic::instantiateStart((macho_header*)fileData, path, segCount, libCount);
184 ImageLoaderMachOClassic* ImageLoaderMachOClassic::instantiateFromCache(const macho_header* mh, const char* path, long slide, const struct stat& info,
218 ImageLoaderMachOClassic* ImageLoaderMachOClassic::instantiateFromMemory(const char* moduleName, const macho_header* mh, uint64_t len,
251 ImageLoaderMachOClassic::ImageLoaderMachOClassic(const macho_header* mh, const char* path,
258 ImageLoaderMachOClassic* ImageLoaderMachOClassic::instantiateStart(const macho_header* mh, const char* path,
581 const uint32_t cmd_count = ((macho_header*)fMachOData)->ncmds;
582 const struct load_command* const cmds = (struct load_command*)&fMachOData[sizeof(macho_header)];
630 const uint32_t cmd_count = ((macho_header*)fMachOData)->ncmds;
631 const struct load_command* const cmds = (struct load_command*)&fMachOData[sizeof(macho_header)];
[all...]
H A Ddyld.h95 extern uintptr_t _main(const macho_header* mainExecutableMH, uintptr_t mainExecutableSlide, int argc, const char* argv[], const char* envp[],
H A DthreadLocalVariables.c41 typedef struct mach_header_64 macho_header; typedef in typeref:struct:mach_header_64
46 typedef struct mach_header macho_header; typedef in typeref:struct:mach_header
183 const struct load_command* const cmds = (struct load_command*)(((uint8_t*)mh) + sizeof(macho_header));
271 const struct load_command* const cmds = (struct load_command*)(((uint8_t*)mh) + sizeof(macho_header));
H A Ddyld.cpp134 extern "C" const macho_header __dso_handle;
215 static const macho_header* sMainExecutableMachHeader = NULL;
1602 const struct load_command* const cmds = (struct load_command*)(((char*)sMainExecutableMachHeader)+sizeof(macho_header));
1640 static bool hasCodeSignatureLoadCommand(const macho_header* mh)
1643 const struct load_command* const cmds = (struct load_command*)(((char*)mh)+sizeof(macho_header));
2242 static ImageLoader* instantiateFromLoadedImage(const macho_header* mh, uintptr_t slide, const char* path)
2256 static bool findInSharedCacheImage(const char* path, bool searchByPath, const struct stat* stat_buf, const macho_header** mh, const char** pathInCache, long* slide)
2289 *mh = (macho_header*)(p->address+sSharedCacheSlide);
2310 *mh = (macho_header*)(p->address+sSharedCacheSlide);
2326 const macho_header* mhInCach
[all...]
H A DImageLoaderMachOCompressed.cpp104 ImageLoaderMachOCompressed* ImageLoaderMachOCompressed::instantiateMainExecutable(const macho_header* mh, uintptr_t slide, const char* path,
139 ImageLoaderMachOCompressed* image = ImageLoaderMachOCompressed::instantiateStart((macho_header*)fileData, path, segCount, libCount);
199 ImageLoaderMachOCompressed* ImageLoaderMachOCompressed::instantiateFromCache(const macho_header* mh, const char* path, long slide,
235 ImageLoaderMachOCompressed* ImageLoaderMachOCompressed::instantiateFromMemory(const char* moduleName, const macho_header* mh, uint64_t len,
268 ImageLoaderMachOCompressed::ImageLoaderMachOCompressed(const macho_header* mh, const char* path, unsigned int segCount,
283 ImageLoaderMachOCompressed* ImageLoaderMachOCompressed::instantiateStart(const macho_header* mh, const char* path,
1116 const uint32_t cmd_count = ((macho_header*)fMachOData)->ncmds;
1117 const struct load_command* const cmds = (struct load_command*)&fMachOData[sizeof(macho_header)];
1519 const uint32_t cmd_count = ((macho_header*)fMachOData)->ncmds;
1520 const struct load_command* const cmds = (struct load_command*)&fMachOData[sizeof(macho_header)];
[all...]
H A Dglue.c52 typedef struct mach_header_64 macho_header; typedef in typeref:struct:mach_header_64
57 typedef struct mach_header macho_header; typedef in typeref:struct:mach_header
502 const struct load_command* const cmds = (struct load_command*)(((char*)hostDyldMH)+sizeof(macho_header));
H A DImageLoader.h160 struct macho_header : public mach_header_64 {}; struct in inherits:mach_header_64
163 struct macho_header : public mach_header {}; struct in inherits:mach_header
/macosx-10.10.1/Csu-85/
H A Dlazy_dylib_loader.c47 typedef struct mach_header_64 macho_header; typedef in typeref:struct:mach_header_64
54 typedef struct mach_header macho_header; typedef in typeref:struct:mach_header
60 extern const macho_header __dso_handle;
82 static void* getHandleForLazyOrdinal(const macho_header* mh, void* handles[], uint8_t ordinal)
85 const struct load_command* const cmds = (struct load_command*)((char*)mh + sizeof(macho_header));
126 static const macho_header* mh = NULL;
138 const macho_header* tmh = &__dso_handle;
141 const struct load_command* const cmds = (struct load_command*)((char*)tmh + sizeof(macho_header));
191 const struct load_command* const cmds = (struct load_command*)((char*)mh + sizeof(macho_header));
/macosx-10.10.1/dyld-353.2.1/launch-cache/
H A Ddyld_shared_cache_util.cpp158 const macho_header<P>* mh = (const macho_header<P>*)dylibInfo->machHeader;
159 const macho_load_command<P>* const cmds = (macho_load_command<P>*)((uintptr_t)dylibInfo->machHeader + sizeof(macho_header<P>));
278 const macho_header<P>* mh = (const macho_header<P>*)dylibInfo->machHeader;
280 const macho_load_command<P>* const cmds = (macho_load_command<P>*)((long)mh + sizeof(macho_header<P>));
H A DObjCModernAbstraction.hpp127 objc_header_info_t(SharedCache<A>* cache, const macho_header<P>* mh)
683 void walk(SharedCache<A>* cache, const macho_header<P>* header, objc_class_t<A> *cls)
698 void visitClass(SharedCache<A>* cache, const macho_header<P>* header, objc_class_t<A> *cls)
714 void walk(SharedCache<A>* cache, const macho_header<P>* header)
741 void walk(SharedCache<A>* cache, const macho_header<P>* header, bool walkProtocols)
822 void optimize(SharedCache<A>* cache, const macho_header<P>* header)
868 void visitIvar(SharedCache<A>* cache, const macho_header<P>* /*unused, may be NULL*/, objc_class_t<A> *cls, objc_ivar_t<A> *ivar)
888 void visitClass(SharedCache<A>* cache, const macho_header<P>* /*unused, may be NULL*/, objc_class_t<A> *cls)
893 // Note that we don't need the macho_header, so just pass NULL.
924 void optimize(SharedCache<A>* cache, const macho_header<
[all...]
H A Ddsc_iterator.cpp75 const macho_header<P>* mh = (const macho_header<P>*)machHeader;
76 const macho_load_command<P>* const cmds = (macho_load_command<P>*)(machHeader + sizeof(macho_header<P>));
H A Dupdate_dyld_shared_cache.cpp800 const macho_header<P> *mh_l = (macho_header<P>*)segs_l[0].mappedAddress();
801 const macho_header<P> *mh_r = (macho_header<P>*)segs_r[0].mappedAddress();
875 PointerSection(SharedCache<A>* cache, const macho_header<P>* header,
927 ArraySection(SharedCache<A>* cache, const macho_header<P>* header,
1510 const macho_header<P>* fHeader;
1566 fHeader = (const macho_header<P>*)fLayout.getSegments()[0].mappedAddress();
1577 const macho_load_command<P>* const cmds = (macho_load_command<P>*)((uint8_t*)fHeader + sizeof(macho_header<P>));
1833 const macho_load_command<P>* const cmds = (macho_load_command<P>*)((uint8_t*)fHeader + sizeof(macho_header<
[all...]
H A DMachORebaser.hpp106 const macho_header<P>* fHeader;
128 fHeader = (const macho_header<P>*)fLayout.getSegments()[0].mappedAddress();
149 const macho_load_command<P>* const cmds = (macho_load_command<P>*)((uint8_t*)fHeader + sizeof(macho_header<P>));
258 const macho_load_command<P>* const cmds = (macho_load_command<P>*)((uint8_t*)fHeader + sizeof(macho_header<P>));
408 const macho_load_command<P>* const cmds = (macho_load_command<P>*)((uint8_t*)fHeader + sizeof(macho_header<P>));
698 const macho_load_command<P>* const cmds = (macho_load_command<P>*)((uint8_t*)fHeader + sizeof(macho_header<P>));
874 const macho_load_command<P>* const cmds = (macho_load_command<P>*)((uint8_t*)fHeader + sizeof(macho_header<P>));
H A Ddsc_extractor.cpp101 int optimize_linkedit(macho_header<typename A::P>* mh, uint64_t textOffsetInCache, const void* mapped_cache, uint64_t* newSize)
112 const macho_load_command<P>* const cmds = (macho_load_command<P>*)((uint8_t*)mh + sizeof(macho_header<P>));
433 const macho_header<P> *textMH = reinterpret_cast<macho_header<P>*>((uint8_t*)mapped_cache+textOffsetInCache);
460 optimize_linkedit<A>(((macho_header<P>*)(base_ptr+offsetInFatFile)), textOffsetInCache, mapped_cache, &newSize);
H A DMachOBinder.hpp170 ((macho_header<P>*)this->fHeader)->set_flags(this->fHeader->flags() | MH_PREBOUND | MH_SPLIT_SEGS | 0x80000000);
174 const macho_load_command<P>* const cmds = (macho_load_command<P>*)((uint8_t*)this->fHeader + sizeof(macho_header<P>));
345 const macho_load_command<P>* const cmds = (macho_load_command<P>*)((uint8_t*)this->fHeader + sizeof(macho_header<P>));
545 const macho_load_command<P>* const cmds = (macho_load_command<P>*)((uint8_t*)this->fHeader + sizeof(macho_header<P>));
810 const macho_load_command<P>* const cmds = (macho_load_command<P>*)((uint8_t*)this->fHeader + sizeof(macho_header<P>));
922 const macho_load_command<P>* const cmds = (macho_load_command<P>*)((uint8_t*)this->fHeader + sizeof(macho_header<P>));
1108 const macho_load_command<P>* const cmds = (macho_load_command<P>*)((uint8_t*)this->fHeader + sizeof(macho_header<P>));
1239 const macho_load_command<P>* const cmds = (macho_load_command<P>*)((uint8_t*)this->fHeader + sizeof(macho_header<P>));
H A DObjCLegacyAbstraction.hpp176 static void update(SharedCache<A>* cache, const macho_header<P>* header,
H A DMachOLayout.hpp521 const macho_header<P>* mh = (const macho_header<P>*)machHeader;
544 const macho_load_command<P>* const cmds = (macho_load_command<P>*)((uint8_t*)mh + sizeof(macho_header<P>));
H A DMachOFileAbstraction.hpp768 class macho_header { class
796 const macho_load_command<P>* cmds = (macho_load_command<P>*)((uint8_t*)this + sizeof(macho_header<P>));
829 const macho_load_command<P>* cmds = (macho_load_command<P>*)((uint8_t*)this + sizeof(macho_header<P>));

Completed in 191 milliseconds