Home
last modified time | relevance | path

Searched refs:MachOObjectFile (Results 1 – 25 of 58) sorted by relevance

123

/openbsd-src/gnu/llvm/llvm/lib/Object/
H A DMachOObjectFile.cpp71 static T getStruct(const MachOObjectFile &O, const char *P) { in getStruct()
84 static Expected<T> getStructOrErr(const MachOObjectFile &O, const char *P) { in getStructOrErr()
97 getSectionPtr(const MachOObjectFile &O, MachOObjectFile::LoadCommandInfo L, in getSectionPtr()
111 static const char *getPtr(const MachOObjectFile &O, size_t Offset) { in getPtr()
117 getSymbolTableEntryBase(const MachOObjectFile &O, DataRefImpl DRI) { in getSymbolTableEntryBase()
130 static unsigned getCPUType(const MachOObjectFile &O) { in getCPUType()
134 static unsigned getCPUSubType(const MachOObjectFile &O) { in getCPUSubType()
148 static bool getPlainRelocationPCRel(const MachOObjectFile &O, in getPlainRelocationPCRel()
160 static unsigned getPlainRelocationLength(const MachOObjectFile &O, in getPlainRelocationLength()
172 static unsigned getPlainRelocationType(const MachOObjectFile &O, in getPlainRelocationType()
[all …]
H A DMachOUniversalWriter.cpp37 static uint32_t calculateFileAlignment(const MachOObjectFile &O) { in calculateFileAlignment()
69 static uint32_t calculateAlignment(const MachOObjectFile &ObjectFile) { in calculateAlignment()
90 Slice::Slice(const MachOObjectFile &O, uint32_t Align) in Slice()
101 Slice::Slice(const MachOObjectFile &O) : Slice(O, calculateAlignment(O)) {} in Slice()
122 std::unique_ptr<MachOObjectFile> MFO = nullptr; in create()
136 MachOObjectFile *O = cast<MachOObjectFile>(Bin); in create()
239 MachOObjectFile::getArchTriple(CPUType, CPUSubType).getArchName()); in create()
H A DSymbolSize.cpp30 if (auto *M = dyn_cast<MachOObjectFile>(&O)) in getSectionID()
40 if (auto *M = dyn_cast<MachOObjectFile>(&O)) in getSymbolSectionID()
/openbsd-src/gnu/llvm/llvm/include/llvm/Object/
H A DMachO.h75 ExportEntry(Error *Err, const MachOObjectFile *O, ArrayRef<uint8_t> Trie);
89 friend class MachOObjectFile;
116 const MachOObjectFile *O;
134 BindRebaseSegInfo(const MachOObjectFile *Obj);
170 MachORebaseEntry(Error *Err, const MachOObjectFile *O,
185 friend class MachOObjectFile;
192 const MachOObjectFile *O;
216 MachOBindEntry(Error *Err, const MachOObjectFile *O,
236 friend class MachOObjectFile;
244 const MachOObjectFile *O;
[all …]
H A DMachOUniversal.h96 return MachOObjectFile::getArchTriple(getCPUType(), getCPUSubType()); in getTriple()
100 MachOObjectFile::getArchTriple(getCPUType(), getCPUSubType(), in getArchFlagName()
105 Expected<std::unique_ptr<MachOObjectFile>> getAsObjectFile() const;
158 Expected<std::unique_ptr<MachOObjectFile>>
H A DMachOUniversalWriter.h32 class MachOObjectFile; variable
49 explicit Slice(const MachOObjectFile &O);
51 Slice(const MachOObjectFile &O, uint32_t Align);
/openbsd-src/gnu/llvm/llvm/tools/llvm-objdump/
H A DMachODump.h22 class MachOObjectFile; variable
64 Error getMachORelocationValueString(const object::MachOObjectFile *Obj,
68 const object::MachOObjectFile *
69 getMachODSymObject(const object::MachOObjectFile *O, StringRef Filename,
76 void printMachOUnwindInfo(const object::MachOObjectFile *O);
H A DMachODump.cpp98 static StringRef ordinalName(const object::MachOObjectFile *, int);
138 static const Target *GetTarget(const MachOObjectFile *MachOObj, in GetTarget()
311 static void getSectionsAndSymbols(MachOObjectFile *MachOObj, in getSectionsAndSymbols()
375 static void printRelocationTargetName(const MachOObjectFile *O, in printRelocationTargetName()
448 Error objdump::getMachORelocationValueString(const MachOObjectFile *Obj, in getMachORelocationValueString()
626 static void PrintIndirectSymbolTable(MachOObjectFile *O, bool verbose, in PrintIndirectSymbolTable()
682 static void PrintIndirectSymbols(MachOObjectFile *O, bool verbose) { in PrintIndirectSymbols()
825 static void PrintRelocationEntries(const MachOObjectFile *O, in PrintRelocationEntries()
1000 static void PrintRelocations(const MachOObjectFile *O, const bool verbose) { in PrintRelocations()
1064 static void PrintFunctionStarts(MachOObjectFile *O) { in PrintFunctionStarts()
[all …]
/openbsd-src/gnu/llvm/llvm/tools/llvm-size/
H A Dllvm-size.cpp210 static void printDarwinSectionSizes(MachOObjectFile *MachO) { in printDarwinSectionSizes()
285 static void printDarwinSegmentSizes(MachOObjectFile *MachO) { in printDarwinSegmentSizes()
368 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(Obj); in printObjectSectionSizes()
523 auto *MachO = dyn_cast<MachOObjectFile>(O); in checkMachOAndArchFlags()
532 H_64 = MachO->MachOObjectFile::getHeader64(); in checkMachOAndArchFlags()
533 T = MachOObjectFile::getArchTriple(H_64.cputype, H_64.cpusubtype); in checkMachOAndArchFlags()
535 H = MachO->MachOObjectFile::getHeader(); in checkMachOAndArchFlags()
536 T = MachOObjectFile::getArchTriple(H.cputype, H.cpusubtype); in checkMachOAndArchFlags()
568 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); in printFileSectionSizes()
604 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); in printFileSectionSizes()
[all …]
/openbsd-src/gnu/llvm/llvm/tools/llvm-readobj/
H A DMachODumper.cpp30 MachODumper(const MachOObjectFile *Obj, ScopedPrinter &Writer) in MachODumper()
71 void printRelocation(const MachOObjectFile *Obj, const RelocationRef &Reloc);
73 void printSectionHeaders(const MachOObjectFile *Obj);
75 const MachOObjectFile *Obj;
83 std::unique_ptr<ObjDumper> createMachODumper(const object::MachOObjectFile &Obj, in createMachODumper()
341 static void getSection(const MachOObjectFile *Obj, in getSection()
370 static void getSegment(const MachOObjectFile *Obj, in getSegment()
371 const MachOObjectFile::LoadCommandInfo &L, in getSegment()
402 static void getSymbol(const MachOObjectFile *Obj, in getSymbol()
468 void MachODumper::printSectionHeaders(const MachOObjectFile *Obj) { in printSectionHeaders()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldMachOI386.h37 const MachOObjectFile &Obj = in processRelocationRef()
38 static_cast<const MachOObjectFile &>(BaseObjT); in processRelocationRef()
136 return populateJumpTable(cast<MachOObjectFile>(Obj), Section, SectionID); in finalizeSection()
138 return populateIndirectSymbolPointersSection(cast<MachOObjectFile>(Obj), in finalizeSection()
148 const MachOObjectFile &Obj = in processSECTDIFFRelocation()
149 static_cast<const MachOObjectFile&>(BaseObjT); in processSECTDIFFRelocation()
211 Error populateJumpTable(const MachOObjectFile &Obj, in populateJumpTable()
H A DRuntimeDyldMachOX86_64.h37 const MachOObjectFile &Obj = in processRelocationRef()
38 static_cast<const MachOObjectFile &>(BaseObjT); in processRelocationRef()
158 const MachOObjectFile &BaseObj, in processSubtractRelocation()
160 const MachOObjectFile &Obj = in processSubtractRelocation()
161 static_cast<const MachOObjectFile&>(BaseObj); in processSubtractRelocation()
H A DRuntimeDyldMachOARM.h104 const MachOObjectFile &Obj = in processRelocationRef()
105 static_cast<const MachOObjectFile &>(BaseObjT); in processRelocationRef()
297 return populateIndirectSymbolPointersSection(cast<MachOObjectFile>(Obj), in finalizeSection()
347 const MachOObjectFile &MachO = in processHALFSECTDIFFRelocation()
348 static_cast<const MachOObjectFile&>(BaseTObj); in processHALFSECTDIFFRelocation()
/openbsd-src/gnu/llvm/llvm/tools/dsymutil/
H A DMachODebugMapParser.cpp77 std::unique_ptr<DebugMap> parseOneBinary(const MachOObjectFile &MainBinary,
86 void loadMainBinarySymbols(const MachOObjectFile &MainBinary);
87 void loadCurrentObjectFileSymbols(const object::MachOObjectFile &Obj);
112 void dumpOneBinaryStab(const MachOObjectFile &MainBinary,
182 auto Object = ObjectEntry->getObjectAs<MachOObjectFile>(Result->getTriple()); in switchToNewDebugMapObject()
195 static std::string getArchName(const object::MachOObjectFile &Obj) { in getArchName()
201 MachODebugMapParser::parseOneBinary(const MachOObjectFile &MainBinary, in parseOneBinary()
328 void MachODebugMapParser::dumpOneBinaryStab(const MachOObjectFile &MainBinary, in dumpOneBinaryStab()
372 auto Objects = ObjectEntry->getObjectsAs<MachOObjectFile>(); in dumpStab()
397 auto Objects = ObjectEntry->getObjectsAs<MachOObjectFile>(); in parse()
[all …]
H A DMachOUtils.cpp142 static void iterateOnSegments(const object::MachOObjectFile &Obj, in iterateOnSegments()
202 static unsigned transferSymbols(const object::MachOObjectFile &Obj, in transferSymbols()
229 getSection(const object::MachOObjectFile &Obj, in getSection()
231 const object::MachOObjectFile::LoadCommandInfo &LCI, unsigned Idx) { in getSection()
236 getSection(const object::MachOObjectFile &Obj, in getSection()
238 const object::MachOObjectFile::LoadCommandInfo &LCI, unsigned Idx) { in getSection()
257 const object::MachOObjectFile::LoadCommandInfo &LCI, SegmentTy Segment, in transferSegmentAndSections()
258 const object::MachOObjectFile &Obj, MachObjectWriter &Writer, in transferSegmentAndSections()
337 static bool isExecutable(const object::MachOObjectFile &Obj) { in isExecutable()
380 ObjectEntry->getObjectAs<object::MachOObjectFile>(DM.getTriple()); in generateDsymCompanion()
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldMachO.h67 const MachOObjectFile &Obj = in getRelocationEntry()
68 static_cast<const MachOObjectFile &>(BaseTObj); in getRelocationEntry()
112 static section_iterator getSectionByAddress(const MachOObjectFile &Obj,
117 Error populateIndirectSymbolPointersSection(const MachOObjectFile &Obj,
H A DRuntimeDyldMachO.cpp59 const MachOObjectFile &Obj = in processScatteredVANILLA()
60 static_cast<const MachOObjectFile&>(BaseObjT); in processScatteredVANILLA()
101 const MachOObjectFile &Obj = in getRelocationValueRef()
102 static_cast<const MachOObjectFile &>(BaseTObj); in getRelocationValueRef()
143 auto &O = *cast<MachOObjectFile>(RI->getObject()); in makeValueAddendPCRel()
163 RuntimeDyldMachO::getSectionByAddress(const MachOObjectFile &Obj, in getSectionByAddress()
181 const MachOObjectFile &Obj, in populateIndirectSymbolPointersSection()
/openbsd-src/gnu/llvm/llvm/tools/obj2yaml/
H A Dmacho2yaml.cpp28 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd,
31 const object::MachOObjectFile &Obj;
55 extractSections(const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd,
60 MachODumper(const object::MachOObjectFile &O, in MachODumper()
171 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in extractSections()
210 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData()
219 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData()
229 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData()
238 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd) { in readString()
250 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/JITLink/
H A DMachOLinkGraphBuilder.h86 MachOLinkGraphBuilder(const object::MachOObjectFile &Obj, Triple TT,
91 const object::MachOObjectFile &getObject() const { return Obj; } in getObject()
182 static unsigned getPointerSize(const object::MachOObjectFile &Obj);
183 static support::endianness getEndianness(const object::MachOObjectFile &Obj);
227 const object::MachOObjectFile &Obj;
/openbsd-src/gnu/llvm/llvm/include/llvm/ObjCopy/MachO/
H A DMachOObjcopy.h17 class MachOObjectFile; variable
32 object::MachOObjectFile &In, raw_ostream &Out);
/openbsd-src/gnu/llvm/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp307 if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj)) in isSymbolList64Bit()
334 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); in darwinPrintSymbol()
360 H_64 = MachO->MachOObjectFile::getHeader64(); in darwinPrintSymbol()
378 H = MachO->MachOObjectFile::getHeader(); in darwinPrintSymbol()
629 static void darwinPrintStab(MachOObjectFile *MachO, const NMSymbol &S) { in darwinPrintStab()
768 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); in printSymbolList()
1003 static char getSymbolNMTypeChar(MachOObjectFile &Obj, basic_symbol_iterator I) { in getSymbolNMTypeChar()
1119 if (isa<MachOObjectFile>(Obj) || !(Symflags & object::SymbolRef::SF_Weak)) in getNMSectionTagAndName()
1126 if (!isa<MachOObjectFile>(Obj) && (Symflags & object::SymbolRef::SF_Weak)) in getNMSectionTagAndName()
1143 else if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj)) in getNMSectionTagAndName()
[all …]
/openbsd-src/gnu/llvm/llvm/tools/llvm-gsymutil/
H A Dllvm-gsymutil.cpp151 static uint32_t getCPUType(MachOObjectFile &MachO) { in getCPUType()
159 static bool filterArch(MachOObjectFile &Obj) { in filterArch()
212 getImageBaseAddress(const object::MachOObjectFile *MachO) { in getImageBaseAddress()
242 if (const auto *MachO = dyn_cast<object::MachOObjectFile>(&Obj)) in getImageBaseAddress()
341 std::vector<std::unique_ptr<MachOObjectFile>> FilterObjs; in handleBuffer()
397 MachOObjectFile::findDsymObjectMembers(ConvertFilename)) { in convertFileToGSYM()
/openbsd-src/gnu/llvm/llvm/lib/ObjCopy/MachO/
H A DMachOReader.h31 const object::MachOObjectFile &MachOObj;
55 explicit MachOReader(const object::MachOObjectFile &Obj) : MachOObj(Obj) {} in MachOReader()
/openbsd-src/gnu/llvm/llvm/tools/llvm-lipo/
H A Dllvm-lipo.cpp143 if (!MachOObjectFile::isValidArch(ArchitectureName)) { in validateArchitectureName()
148 for (auto arch : MachOObjectFile::getValidArchs()) in validateArchitectureName()
331 const auto S = B->isMachO() ? Slice(*cast<MachOObjectFile>(B)) in readInputBinaries()
371 dyn_cast<MachOObjectFile>(InputBinaries.front().getBinary())) { in verifyArch()
389 Expected<std::unique_ptr<MachOObjectFile>> MachOObjOrError = in printBinaryArchs()
423 if (const auto *MachO = dyn_cast<MachOObjectFile>(Binary)) { in printBinaryArchs()
483 Expected<std::unique_ptr<MachOObjectFile>> Obj = in thinSlice()
566 Expected<std::unique_ptr<MachOObjectFile>> BinaryOrError = in buildSlices()
584 } else if (const auto *O = dyn_cast<MachOObjectFile>(InputBinary)) { in buildSlices()
664 auto O = dyn_cast<MachOObjectFile>(ReplacementBinary); in buildReplacementSlices()
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/GSYM/
H A DObjectFileTransformer.cpp28 if (auto *MachO = dyn_cast<object::MachOObjectFile>(&Obj)) { in getUUID()
75 const bool IsMachO = isa<MachOObjectFile>(&Obj); in convert()

123