Lines Matching refs:Write32
124 Write32(is64Bit() ? macho::HM_Object64 : macho::HM_Object32); in WriteHeader()
126 Write32(TargetObjectWriter->getCPUType()); in WriteHeader()
127 Write32(TargetObjectWriter->getCPUSubtype()); in WriteHeader()
129 Write32(macho::HFT_Object); in WriteHeader()
130 Write32(NumLoadCommands); in WriteHeader()
131 Write32(LoadCommandsSize); in WriteHeader()
132 Write32(Flags); in WriteHeader()
134 Write32(0); // reserved in WriteHeader()
157 Write32(is64Bit() ? macho::LCT_Segment64 : macho::LCT_Segment); in WriteSegmentLoadCommand()
158 Write32(SegmentLoadCommandSize + in WriteSegmentLoadCommand()
169 Write32(0); // vmaddr in WriteSegmentLoadCommand()
170 Write32(VMSize); // vmsize in WriteSegmentLoadCommand()
171 Write32(SectionDataStartOffset); // file offset in WriteSegmentLoadCommand()
172 Write32(SectionDataSize); // file size in WriteSegmentLoadCommand()
174 Write32(0x7); // maxprot in WriteSegmentLoadCommand()
175 Write32(0x7); // initprot in WriteSegmentLoadCommand()
176 Write32(NumSections); in WriteSegmentLoadCommand()
177 Write32(0); // flags in WriteSegmentLoadCommand()
209 Write32(getSectionAddress(&SD)); // address in WriteSection()
210 Write32(SectionSize); // size in WriteSection()
212 Write32(FileOffset); in WriteSection()
219 Write32(Log2_32(SD.getAlignment())); in WriteSection()
220 Write32(NumRelocations ? RelocationsStart : 0); in WriteSection()
221 Write32(NumRelocations); in WriteSection()
222 Write32(Flags); in WriteSection()
223 Write32(IndirectSymBase.lookup(&SD)); // reserved1 in WriteSection()
224 Write32(Section.getStubSize()); // reserved2 in WriteSection()
226 Write32(0); // reserved3 in WriteSection()
241 Write32(macho::LCT_Symtab); in WriteSymtabLoadCommand()
242 Write32(macho::SymtabLoadCommandSize); in WriteSymtabLoadCommand()
243 Write32(SymbolOffset); in WriteSymtabLoadCommand()
244 Write32(NumSymbols); in WriteSymtabLoadCommand()
245 Write32(StringTableOffset); in WriteSymtabLoadCommand()
246 Write32(StringTableSize); in WriteSymtabLoadCommand()
264 Write32(macho::LCT_Dysymtab); in WriteDysymtabLoadCommand()
265 Write32(macho::DysymtabLoadCommandSize); in WriteDysymtabLoadCommand()
266 Write32(FirstLocalSymbol); in WriteDysymtabLoadCommand()
267 Write32(NumLocalSymbols); in WriteDysymtabLoadCommand()
268 Write32(FirstExternalSymbol); in WriteDysymtabLoadCommand()
269 Write32(NumExternalSymbols); in WriteDysymtabLoadCommand()
270 Write32(FirstUndefinedSymbol); in WriteDysymtabLoadCommand()
271 Write32(NumUndefinedSymbols); in WriteDysymtabLoadCommand()
272 Write32(0); // tocoff in WriteDysymtabLoadCommand()
273 Write32(0); // ntoc in WriteDysymtabLoadCommand()
274 Write32(0); // modtaboff in WriteDysymtabLoadCommand()
275 Write32(0); // nmodtab in WriteDysymtabLoadCommand()
276 Write32(0); // extrefsymoff in WriteDysymtabLoadCommand()
277 Write32(0); // nextrefsyms in WriteDysymtabLoadCommand()
278 Write32(IndirectSymbolOffset); in WriteDysymtabLoadCommand()
279 Write32(NumIndirectSymbols); in WriteDysymtabLoadCommand()
280 Write32(0); // extreloff in WriteDysymtabLoadCommand()
281 Write32(0); // nextrel in WriteDysymtabLoadCommand()
282 Write32(0); // locreloff in WriteDysymtabLoadCommand()
283 Write32(0); // nlocrel in WriteDysymtabLoadCommand()
341 Write32(MSD.StringIndex); in WriteNlist()
351 Write32(Address); in WriteNlist()
751 Write32(Relocs[e - i - 1].Word0); in WriteObject()
752 Write32(Relocs[e - i - 1].Word1); in WriteObject()
773 Write32(Flags); in WriteObject()
778 Write32(Asm.getSymbolData(*it->Symbol).getIndex()); in WriteObject()