Searched refs:segCmd (Results 1 - 5 of 5) sorted by relevance

/macosx-10.10.1/dyld-353.2.1/launch-cache/
H A DMachOLayout.hpp212 uint64_t segmentSize(const macho_segment_command<typename A::P>* segCmd) const;
213 uint64_t segmentFileSize(const macho_segment_command<typename A::P>* segCmd) const;
214 uint64_t segmentAlignment(const macho_segment_command<typename A::P>* segCmd) const;
454 uint64_t MachOLayout<A>::segmentSize(const macho_segment_command<typename A::P>* segCmd) const
457 if ( segCmd->nsects() > 0 ) {
458 const macho_section<P>* const sectionsStart = (macho_section<P>*)((uint8_t*)segCmd + sizeof(macho_segment_command<P>));
459 const macho_section<P>* const lastSection = &sectionsStart[segCmd->nsects()-1];
462 if ( endSectAddrPage < (segCmd->vmaddr() + segCmd->vmsize()) ) {
463 uint64_t size = endSectAddrPage - segCmd
578 const macho_segment_command<P>* segCmd = (macho_segment_command<P>*)cmd; local
[all...]
H A Ddsc_iterator.cpp95 macho_segment_command<P>* segCmd = (macho_segment_command<P>*)cmd; local
96 uint64_t fileOffset = segCmd->fileoff();
101 uint64_t sizem = segCmd->vmsize();
102 if ( strcmp(segCmd->segname(), "__LINKEDIT") == 0 ) {
108 segInfo.name = segCmd->segname();
111 segInfo.address = segCmd->vmaddr();
H A Ddsc_extractor.cpp129 macho_segment_command<P>* segCmd = (macho_segment_command<P>*)cmd; local
130 segCmd->set_fileoff(cumulativeFileSize);
131 macho_section<P>* const sectionsStart = (macho_section<P>*)((char*)segCmd + sizeof(macho_segment_command<P>));
132 macho_section<P>* const sectionsEnd = &sectionsStart[segCmd->nsects()];
135 sect->set_offset((uint32_t)(cumulativeFileSize+sect->addr()-segCmd->vmaddr()));
137 if ( strcmp(segCmd->segname(), "__LINKEDIT") == 0 ) {
138 linkEditSegCmd = segCmd;
140 cumulativeFileSize += segCmd->filesize();
/macosx-10.10.1/dyld-353.2.1/src/
H A DImageLoaderMachO.cpp108 const struct macho_segment_command* segCmd = (struct macho_segment_command*)cmd; local
110 if ( segCmd->vmsize != 0 ) {
112 segOffsets[segIndex++] = (uint32_t)((uint8_t*)segCmd - fMachOData);
130 struct macho_segment_command* segCmd; local
157 segCmd = (struct macho_segment_command*)cmd;
159 if ( segCmd->vmsize != 0 )
162 if ( context.codeSigningEnforced && (segCmd->fileoff < mh->sizeofcmds) && (segCmd->filesize != 0) ) {
163 if ( (segCmd->fileoff != 0) || (segCmd
596 const macho_segment_command* segCmd = segLoadCommand(segIndex); local
611 const macho_segment_command* segCmd = segLoadCommand(segIndex); local
625 const macho_segment_command* segCmd = segLoadCommand(segIndex); local
[all...]
H A DdyldInitialization.cpp117 const struct macho_segment_command* segCmd = (struct macho_segment_command*)cmd; local
118 if ( strcmp(segCmd->segname, "__TEXT") == 0 ) {
119 return (uintptr_t)mh - segCmd->vmaddr;

Completed in 120 milliseconds