Home | History | Annotate | Download | only in MC

Lines Matching refs:Write32

140   Write32(is64Bit() ? MachO::MH_MAGIC_64 : MachO::MH_MAGIC);
142 Write32(TargetObjectWriter->getCPUType());
143 Write32(TargetObjectWriter->getCPUSubtype());
145 Write32(MachO::MH_OBJECT);
146 Write32(NumLoadCommands);
147 Write32(LoadCommandsSize);
148 Write32(Flags);
150 Write32(0); // reserved
173 Write32(is64Bit() ? MachO::LC_SEGMENT_64 : MachO::LC_SEGMENT);
174 Write32(SegmentLoadCommandSize +
185 Write32(0); // vmaddr
186 Write32(VMSize); // vmsize
187 Write32(SectionDataStartOffset); // file offset
188 Write32(SectionDataSize); // file size
191 Write32(MachO::VM_PROT_READ | MachO::VM_PROT_WRITE | MachO::VM_PROT_EXECUTE);
193 Write32(MachO::VM_PROT_READ | MachO::VM_PROT_WRITE | MachO::VM_PROT_EXECUTE);
194 Write32(NumSections);
195 Write32(0); // flags
227 Write32(getSectionAddress(&SD)); // address
228 Write32(SectionSize); // size
230 Write32(FileOffset);
237 Write32(Log2_32(SD.getAlignment()));
238 Write32(NumRelocations ? RelocationsStart : 0);
239 Write32(NumRelocations);
240 Write32(Flags);
241 Write32(IndirectSymBase.lookup(&SD)); // reserved1
242 Write32(Section.getStubSize()); // reserved2
244 Write32(0); // reserved3
259 Write32(MachO::LC_SYMTAB);
260 Write32(sizeof(MachO::symtab_command));
261 Write32(SymbolOffset);
262 Write32(NumSymbols);
263 Write32(StringTableOffset);
264 Write32(StringTableSize);
282 Write32(MachO::LC_DYSYMTAB);
283 Write32(sizeof(MachO::dysymtab_command));
284 Write32(FirstLocalSymbol);
285 Write32(NumLocalSymbols);
286 Write32(FirstExternalSymbol);
287 Write32(NumExternalSymbols);
288 Write32(FirstUndefinedSymbol);
289 Write32(NumUndefinedSymbols);
290 Write32(0); // tocoff
291 Write32(0); // ntoc
292 Write32(0); // modtaboff
293 Write32(0); // nmodtab
294 Write32(0); // extrefsymoff
295 Write32(0); // nextrefsyms
296 Write32(IndirectSymbolOffset);
297 Write32(NumIndirectSymbols);
298 Write32(0); // extreloff
299 Write32(0); // nextrel
300 Write32(0); // locreloff
301 Write32(0); // nlocrel
391 Write32(MSD.StringIndex);
401 Write32(Address);
410 Write32(Type);
411 Write32(sizeof(MachO::linkedit_data_command));
412 Write32(DataOffset);
413 Write32(DataSize);
434 Write32(MachO::LC_LINKER_OPTIONS);
435 Write32(Size);
436 Write32(Options.size());
876 Write32(VersionInfo.Kind == MCVM_OSXVersionMin ? MachO::LC_VERSION_MIN_MACOSX :
878 Write32(sizeof(MachO::version_min_command));
879 Write32(EncodedVersion);
880 Write32(0); // reserved.
958 Write32(Relocs[e - i - 1].r_word0);
959 Write32(Relocs[e - i - 1].r_word1);
979 Write32(Start);
1012 Write32(Flags);
1017 Write32(Asm.getSymbolData(*it->Symbol).getIndex());