Lines Matching refs:MachO

25 #include "llvm/Support/MachO.h"
130 Flags |= MachO::MH_SUBSECTIONS_VIA_SYMBOLS;
138 Write32(is64Bit() ? MachO::MH_MAGIC_64 : MachO::MH_MAGIC);
143 Write32(MachO::MH_OBJECT);
151 (is64Bit()?sizeof(MachO::mach_header_64): sizeof(MachO::mach_header)));
169 is64Bit() ? sizeof(MachO::segment_command_64):
170 sizeof(MachO::segment_command);
171 Write32(is64Bit() ? MachO::LC_SEGMENT_64 : MachO::LC_SEGMENT);
173 NumSections * (is64Bit() ? sizeof(MachO::section_64) :
174 sizeof(MachO::section)));
189 Write32(MachO::VM_PROT_READ | MachO::VM_PROT_WRITE | MachO::VM_PROT_EXECUTE);
191 Write32(MachO::VM_PROT_READ | MachO::VM_PROT_WRITE | MachO::VM_PROT_EXECUTE);
244 assert(OS.tell() - Start == (is64Bit() ? sizeof(MachO::section_64) :
245 sizeof(MachO::section)));
257 Write32(MachO::LC_SYMTAB);
258 Write32(sizeof(MachO::symtab_command));
264 assert(OS.tell() - Start == sizeof(MachO::symtab_command));
280 Write32(MachO::LC_DYSYMTAB);
281 Write32(sizeof(MachO::dysymtab_command));
301 assert(OS.tell() - Start == sizeof(MachO::dysymtab_command));
316 Type = MachO::N_UNDF;
318 Type = MachO::N_ABS;
320 Type = MachO::N_SECT;
325 Type |= MachO::N_PEXT;
329 Type |= MachO::N_EXT;
374 Write32(sizeof(MachO::linkedit_data_command));
378 assert(OS.tell() - Start == sizeof(MachO::linkedit_data_command));
384 unsigned Size = sizeof(MachO::linker_options_command);
397 Write32(MachO::LC_LINKER_OPTIONS);
400 uint64_t BytesWritten = sizeof(MachO::linker_options_command);
744 sizeof(MachO::segment_command_64) + NumSections * sizeof(MachO::section_64):
745 sizeof(MachO::segment_command) + NumSections * sizeof(MachO::section);
751 LoadCommandsSize += sizeof(MachO::linkedit_data_command);
759 LoadCommandsSize += (sizeof(MachO::symtab_command) +
760 sizeof(MachO::dysymtab_command));
774 uint64_t SectionDataStart = (is64Bit() ? sizeof(MachO::mach_header_64) :
775 sizeof(MachO::mach_header)) + LoadCommandsSize;
812 std::vector<MachO::any_relocation_info> &Relocs = Relocations[it];
816 RelocTableEnd += NumRelocs * sizeof(MachO::any_relocation_info);
824 WriteLinkeditLoadCommand(MachO::LC_DATA_IN_CODE, DataRegionsOffset,
852 sizeof(MachO::nlist_64) :
853 sizeof(MachO::nlist));
886 std::vector<MachO::any_relocation_info> &Relocs = Relocations[it];
928 uint32_t Flags = MachO::INDIRECT_SYMBOL_LOCAL;
930 Flags |= MachO::INDIRECT_SYMBOL_ABS;