Lines Matching refs:Write32

141   Write32(is64Bit() ? MachO::MH_MAGIC_64 : MachO::MH_MAGIC);  in WriteHeader()
143 Write32(TargetObjectWriter->getCPUType()); in WriteHeader()
144 Write32(TargetObjectWriter->getCPUSubtype()); in WriteHeader()
146 Write32(MachO::MH_OBJECT); in WriteHeader()
147 Write32(NumLoadCommands); in WriteHeader()
148 Write32(LoadCommandsSize); in WriteHeader()
149 Write32(Flags); in WriteHeader()
151 Write32(0); // reserved in WriteHeader()
174 Write32(is64Bit() ? MachO::LC_SEGMENT_64 : MachO::LC_SEGMENT); in WriteSegmentLoadCommand()
175 Write32(SegmentLoadCommandSize + in WriteSegmentLoadCommand()
186 Write32(0); // vmaddr in WriteSegmentLoadCommand()
187 Write32(VMSize); // vmsize in WriteSegmentLoadCommand()
188 Write32(SectionDataStartOffset); // file offset in WriteSegmentLoadCommand()
189 Write32(SectionDataSize); // file size in WriteSegmentLoadCommand()
192 Write32(MachO::VM_PROT_READ | MachO::VM_PROT_WRITE | MachO::VM_PROT_EXECUTE); in WriteSegmentLoadCommand()
194 Write32(MachO::VM_PROT_READ | MachO::VM_PROT_WRITE | MachO::VM_PROT_EXECUTE); in WriteSegmentLoadCommand()
195 Write32(NumSections); in WriteSegmentLoadCommand()
196 Write32(0); // flags in WriteSegmentLoadCommand()
228 Write32(getSectionAddress(&SD)); // address in WriteSection()
229 Write32(SectionSize); // size in WriteSection()
231 Write32(FileOffset); in WriteSection()
238 Write32(Log2_32(SD.getAlignment())); in WriteSection()
239 Write32(NumRelocations ? RelocationsStart : 0); in WriteSection()
240 Write32(NumRelocations); in WriteSection()
241 Write32(Flags); in WriteSection()
242 Write32(IndirectSymBase.lookup(&SD)); // reserved1 in WriteSection()
243 Write32(Section.getStubSize()); // reserved2 in WriteSection()
245 Write32(0); // reserved3 in WriteSection()
260 Write32(MachO::LC_SYMTAB); in WriteSymtabLoadCommand()
261 Write32(sizeof(MachO::symtab_command)); in WriteSymtabLoadCommand()
262 Write32(SymbolOffset); in WriteSymtabLoadCommand()
263 Write32(NumSymbols); in WriteSymtabLoadCommand()
264 Write32(StringTableOffset); in WriteSymtabLoadCommand()
265 Write32(StringTableSize); in WriteSymtabLoadCommand()
283 Write32(MachO::LC_DYSYMTAB); in WriteDysymtabLoadCommand()
284 Write32(sizeof(MachO::dysymtab_command)); in WriteDysymtabLoadCommand()
285 Write32(FirstLocalSymbol); in WriteDysymtabLoadCommand()
286 Write32(NumLocalSymbols); in WriteDysymtabLoadCommand()
287 Write32(FirstExternalSymbol); in WriteDysymtabLoadCommand()
288 Write32(NumExternalSymbols); in WriteDysymtabLoadCommand()
289 Write32(FirstUndefinedSymbol); in WriteDysymtabLoadCommand()
290 Write32(NumUndefinedSymbols); in WriteDysymtabLoadCommand()
291 Write32(0); // tocoff in WriteDysymtabLoadCommand()
292 Write32(0); // ntoc in WriteDysymtabLoadCommand()
293 Write32(0); // modtaboff in WriteDysymtabLoadCommand()
294 Write32(0); // nmodtab in WriteDysymtabLoadCommand()
295 Write32(0); // extrefsymoff in WriteDysymtabLoadCommand()
296 Write32(0); // nextrefsyms in WriteDysymtabLoadCommand()
297 Write32(IndirectSymbolOffset); in WriteDysymtabLoadCommand()
298 Write32(NumIndirectSymbols); in WriteDysymtabLoadCommand()
299 Write32(0); // extreloff in WriteDysymtabLoadCommand()
300 Write32(0); // nextrel in WriteDysymtabLoadCommand()
301 Write32(0); // locreloff in WriteDysymtabLoadCommand()
302 Write32(0); // nlocrel in WriteDysymtabLoadCommand()
392 Write32(MSD.StringIndex); in WriteNlist()
402 Write32(Address); in WriteNlist()
411 Write32(Type); in WriteLinkeditLoadCommand()
412 Write32(sizeof(MachO::linkedit_data_command)); in WriteLinkeditLoadCommand()
413 Write32(DataOffset); in WriteLinkeditLoadCommand()
414 Write32(DataSize); in WriteLinkeditLoadCommand()
435 Write32(MachO::LC_LINKER_OPTION); in WriteLinkerOptionsLoadCommand()
436 Write32(Size); in WriteLinkerOptionsLoadCommand()
437 Write32(Options.size()); in WriteLinkerOptionsLoadCommand()
850 Write32(VersionInfo.Kind == MCVM_OSXVersionMin ? MachO::LC_VERSION_MIN_MACOSX : in WriteObject()
852 Write32(sizeof(MachO::version_min_command)); in WriteObject()
853 Write32(EncodedVersion); in WriteObject()
854 Write32(0); // reserved. in WriteObject()
932 Write32(Relocs[e - i - 1].MRE.r_word0); in WriteObject()
933 Write32(Relocs[e - i - 1].MRE.r_word1); in WriteObject()
953 Write32(Start); in WriteObject()
986 Write32(Flags); in WriteObject()
991 Write32(Asm.getSymbolData(*it->Symbol).getIndex()); in WriteObject()