Lines Matching refs:write32
134 write32(is64Bit() ? MachO::MH_MAGIC_64 : MachO::MH_MAGIC); in writeHeader()
136 write32(TargetObjectWriter->getCPUType()); in writeHeader()
137 write32(TargetObjectWriter->getCPUSubtype()); in writeHeader()
139 write32(Type); in writeHeader()
140 write32(NumLoadCommands); in writeHeader()
141 write32(LoadCommandsSize); in writeHeader()
142 write32(Flags); in writeHeader()
144 write32(0); // reserved in writeHeader()
168 write32(is64Bit() ? MachO::LC_SEGMENT_64 : MachO::LC_SEGMENT); in writeSegmentLoadCommand()
169 write32(SegmentLoadCommandSize + in writeSegmentLoadCommand()
181 write32(VMAddr); // vmaddr in writeSegmentLoadCommand()
182 write32(VMSize); // vmsize in writeSegmentLoadCommand()
183 write32(SectionDataStartOffset); // file offset in writeSegmentLoadCommand()
184 write32(SectionDataSize); // file size in writeSegmentLoadCommand()
187 write32(MaxProt); in writeSegmentLoadCommand()
189 write32(InitProt); in writeSegmentLoadCommand()
190 write32(NumSections); in writeSegmentLoadCommand()
191 write32(0); // flags in writeSegmentLoadCommand()
222 write32(VMAddr); // address in writeSection()
223 write32(SectionSize); // size in writeSection()
225 write32(FileOffset); in writeSection()
228 write32(Log2_32(Section.getAlignment())); in writeSection()
229 write32(NumRelocations ? RelocationsStart : 0); in writeSection()
230 write32(NumRelocations); in writeSection()
231 write32(Flags); in writeSection()
232 write32(IndirectSymBase.lookup(&Sec)); // reserved1 in writeSection()
233 write32(Section.getStubSize()); // reserved2 in writeSection()
235 write32(0); // reserved3 in writeSection()
250 write32(MachO::LC_SYMTAB); in writeSymtabLoadCommand()
251 write32(sizeof(MachO::symtab_command)); in writeSymtabLoadCommand()
252 write32(SymbolOffset); in writeSymtabLoadCommand()
253 write32(NumSymbols); in writeSymtabLoadCommand()
254 write32(StringTableOffset); in writeSymtabLoadCommand()
255 write32(StringTableSize); in writeSymtabLoadCommand()
273 write32(MachO::LC_DYSYMTAB); in writeDysymtabLoadCommand()
274 write32(sizeof(MachO::dysymtab_command)); in writeDysymtabLoadCommand()
275 write32(FirstLocalSymbol); in writeDysymtabLoadCommand()
276 write32(NumLocalSymbols); in writeDysymtabLoadCommand()
277 write32(FirstExternalSymbol); in writeDysymtabLoadCommand()
278 write32(NumExternalSymbols); in writeDysymtabLoadCommand()
279 write32(FirstUndefinedSymbol); in writeDysymtabLoadCommand()
280 write32(NumUndefinedSymbols); in writeDysymtabLoadCommand()
281 write32(0); // tocoff in writeDysymtabLoadCommand()
282 write32(0); // ntoc in writeDysymtabLoadCommand()
283 write32(0); // modtaboff in writeDysymtabLoadCommand()
284 write32(0); // nmodtab in writeDysymtabLoadCommand()
285 write32(0); // extrefsymoff in writeDysymtabLoadCommand()
286 write32(0); // nextrefsyms in writeDysymtabLoadCommand()
287 write32(IndirectSymbolOffset); in writeDysymtabLoadCommand()
288 write32(NumIndirectSymbols); in writeDysymtabLoadCommand()
289 write32(0); // extreloff in writeDysymtabLoadCommand()
290 write32(0); // nextrel in writeDysymtabLoadCommand()
291 write32(0); // locreloff in writeDysymtabLoadCommand()
292 write32(0); // nlocrel in writeDysymtabLoadCommand()
374 write32(MSD.StringIndex); in writeNlist()
384 write32(Address); in writeNlist()
393 write32(Type); in writeLinkeditLoadCommand()
394 write32(sizeof(MachO::linkedit_data_command)); in writeLinkeditLoadCommand()
395 write32(DataOffset); in writeLinkeditLoadCommand()
396 write32(DataSize); in writeLinkeditLoadCommand()
417 write32(MachO::LC_LINKER_OPTION); in writeLinkerOptionsLoadCommand()
418 write32(Size); in writeLinkerOptionsLoadCommand()
419 write32(Options.size()); in writeLinkerOptionsLoadCommand()
833 write32(LCType); in writeObject()
834 write32(sizeof(MachO::version_min_command)); in writeObject()
835 write32(EncodedVersion); in writeObject()
836 write32(0); // reserved. in writeObject()
910 write32(Rel.MRE.r_word0); in writeObject()
911 write32(Rel.MRE.r_word1); in writeObject()
927 write32(Start); in writeObject()
959 write32(Flags); in writeObject()
964 write32(it->Symbol->getIndex()); in writeObject()