Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Object/
H A DMachOObjectFile.cpp68 static T getStruct(const MachOObjectFile &O, const char *P) { in getStruct()
81 static Expected<T> getStructOrErr(const MachOObjectFile &O, const char *P) { in getStructOrErr()
94 getSectionPtr(const MachOObjectFile &O, MachOObjectFile::LoadCommandInfo L, in getSectionPtr()
108 static const char *getPtr(const MachOObjectFile &O, size_t Offset) { in getPtr()
114 getSymbolTableEntryBase(const MachOObjectFile &O, DataRefImpl DRI) { in getSymbolTableEntryBase()
127 static unsigned getCPUType(const MachOObjectFile &O) { in getCPUType()
131 static unsigned getCPUSubType(const MachOObjectFile &O) { in getCPUSubType()
145 static bool getPlainRelocationPCRel(const MachOObjectFile &O, in getPlainRelocationPCRel()
157 static unsigned getPlainRelocationLength(const MachOObjectFile &O, in getPlainRelocationLength()
169 static unsigned getPlainRelocationType(const MachOObjectFile &O, in getPlainRelocationType()
[all …]
H A DMachOUniversalWriter.cpp30 static uint32_t calculateFileAlignment(const MachOObjectFile &O) { in calculateFileAlignment()
62 static uint32_t calculateAlignment(const MachOObjectFile &ObjectFile) { in calculateAlignment()
83 Slice::Slice(const MachOObjectFile &O, uint32_t Align) in Slice()
94 Slice::Slice(const MachOObjectFile &O) : Slice(O, calculateAlignment(O)) {} in Slice()
115 std::unique_ptr<MachOObjectFile> MFO = nullptr; in create()
129 MachOObjectFile *O = cast<MachOObjectFile>(Bin); in create()
232 MachOObjectFile::getArchTriple(CPUType, CPUSubType).getArchName()); in create()
H A DSymbolSize.cpp29 if (auto *M = dyn_cast<MachOObjectFile>(&O)) in getSectionID()
38 if (auto *M = dyn_cast<MachOObjectFile>(&O)) in getSymbolSectionID()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Object/
H A DMachO.h74 ExportEntry(Error *Err, const MachOObjectFile *O, ArrayRef<uint8_t> Trie);
88 friend class MachOObjectFile;
115 const MachOObjectFile *O;
133 BindRebaseSegInfo(const MachOObjectFile *Obj);
169 MachORebaseEntry(Error *Err, const MachOObjectFile *O,
184 friend class MachOObjectFile;
191 const MachOObjectFile *O;
215 MachOBindEntry(Error *Err, const MachOObjectFile *O,
235 friend class MachOObjectFile;
243 const MachOObjectFile *O;
[all …]
H A DMachOUniversal.h97 return MachOObjectFile::getArchTriple(getCPUType(), getCPUSubType()); in getTriple()
101 MachOObjectFile::getArchTriple(getCPUType(), getCPUSubType(), in getArchFlagName()
106 Expected<std::unique_ptr<MachOObjectFile>> getAsObjectFile() const;
159 Expected<std::unique_ptr<MachOObjectFile>>
H A DMachOUniversalWriter.h42 explicit Slice(const MachOObjectFile &O);
44 Slice(const MachOObjectFile &O, uint32_t Align);
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-size/
H A Dllvm-size.cpp217 static void printDarwinSectionSizes(MachOObjectFile *MachO) { in printDarwinSectionSizes()
292 static void printDarwinSegmentSizes(MachOObjectFile *MachO) { in printDarwinSegmentSizes()
375 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(Obj); in printObjectSectionSizes()
530 auto *MachO = dyn_cast<MachOObjectFile>(O); in checkMachOAndArchFlags()
539 H_64 = MachO->MachOObjectFile::getHeader64(); in checkMachOAndArchFlags()
540 T = MachOObjectFile::getArchTriple(H_64.cputype, H_64.cpusubtype); in checkMachOAndArchFlags()
542 H = MachO->MachOObjectFile::getHeader(); in checkMachOAndArchFlags()
543 T = MachOObjectFile::getArchTriple(H.cputype, H.cpusubtype); in checkMachOAndArchFlags()
575 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); in printFileSectionSizes()
609 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); in printFileSectionSizes()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-readobj/
H A DMachODumper.cpp29 MachODumper(const MachOObjectFile *Obj, ScopedPrinter &Writer) in MachODumper()
58 void printRelocation(const MachOObjectFile *Obj, const RelocationRef &Reloc);
60 void printSectionHeaders(const MachOObjectFile *Obj);
62 const MachOObjectFile *Obj;
70 std::unique_ptr<ObjDumper> createMachODumper(const object::MachOObjectFile &Obj, in createMachODumper()
328 static void getSection(const MachOObjectFile *Obj, in getSection()
357 static void getSegment(const MachOObjectFile *Obj, in getSegment()
358 const MachOObjectFile::LoadCommandInfo &L, in getSegment()
389 static void getSymbol(const MachOObjectFile *Obj, in getSymbol()
455 void MachODumper::printSectionHeaders(const MachOObjectFile *Obj) { in printSectionHeaders()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/dsymutil/
H A DMachODebugMapParser.cpp69 std::unique_ptr<DebugMap> parseOneBinary(const MachOObjectFile &MainBinary,
78 void loadMainBinarySymbols(const MachOObjectFile &MainBinary);
79 void loadCurrentObjectFileSymbols(const object::MachOObjectFile &Obj);
104 void dumpOneBinaryStab(const MachOObjectFile &MainBinary,
171 auto Object = ObjectEntry->getObjectAs<MachOObjectFile>(Result->getTriple()); in switchToNewDebugMapObject()
184 static std::string getArchName(const object::MachOObjectFile &Obj) { in getArchName()
190 MachODebugMapParser::parseOneBinary(const MachOObjectFile &MainBinary, in parseOneBinary()
317 void MachODebugMapParser::dumpOneBinaryStab(const MachOObjectFile &MainBinary, in dumpOneBinaryStab()
361 auto Objects = ObjectEntry->getObjectsAs<MachOObjectFile>(); in dumpStab()
386 auto Objects = ObjectEntry->getObjectsAs<MachOObjectFile>(); in parse()
[all …]
H A DMachOUtils.cpp139 static void iterateOnSegments(const object::MachOObjectFile &Obj, in iterateOnSegments()
199 static unsigned transferSymbols(const object::MachOObjectFile &Obj, in transferSymbols()
226 getSection(const object::MachOObjectFile &Obj, in getSection()
228 const object::MachOObjectFile::LoadCommandInfo &LCI, unsigned Idx) { in getSection()
233 getSection(const object::MachOObjectFile &Obj, in getSection()
235 const object::MachOObjectFile::LoadCommandInfo &LCI, unsigned Idx) { in getSection()
254 const object::MachOObjectFile::LoadCommandInfo &LCI, SegmentTy Segment, in transferSegmentAndSections()
255 const object::MachOObjectFile &Obj, MachObjectWriter &Writer, in transferSegmentAndSections()
330 static bool isExecutable(const object::MachOObjectFile &Obj) { in isExecutable()
337 static bool hasLinkEditSegment(const object::MachOObjectFile &Obj) { in hasLinkEditSegment()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/obj2yaml/
H A Dmacho2yaml.cpp27 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd,
30 const object::MachOObjectFile &Obj;
49 extractSections(const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd,
54 MachODumper(const object::MachOObjectFile &O, in MachODumper()
165 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in extractSections()
197 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData()
206 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData()
216 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData()
225 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd) { in readString()
237 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldMachOI386.h38 const MachOObjectFile &Obj = in processRelocationRef()
39 static_cast<const MachOObjectFile &>(BaseObjT); in processRelocationRef()
137 return populateJumpTable(cast<MachOObjectFile>(Obj), Section, SectionID); in finalizeSection()
139 return populateIndirectSymbolPointersSection(cast<MachOObjectFile>(Obj), in finalizeSection()
149 const MachOObjectFile &Obj = in processSECTDIFFRelocation()
150 static_cast<const MachOObjectFile&>(BaseObjT); in processSECTDIFFRelocation()
212 Error populateJumpTable(const MachOObjectFile &Obj, in populateJumpTable()
H A DRuntimeDyldMachOX86_64.h38 const MachOObjectFile &Obj = in processRelocationRef()
39 static_cast<const MachOObjectFile &>(BaseObjT); in processRelocationRef()
159 const MachOObjectFile &BaseObj, in processSubtractRelocation()
161 const MachOObjectFile &Obj = in processSubtractRelocation()
162 static_cast<const MachOObjectFile&>(BaseObj); in processSubtractRelocation()
H A DRuntimeDyldMachOARM.h105 const MachOObjectFile &Obj = in processRelocationRef()
106 static_cast<const MachOObjectFile &>(BaseObjT); in processRelocationRef()
298 return populateIndirectSymbolPointersSection(cast<MachOObjectFile>(Obj), in finalizeSection()
348 const MachOObjectFile &MachO = in processHALFSECTDIFFRelocation()
349 static_cast<const MachOObjectFile&>(BaseTObj); in processHALFSECTDIFFRelocation()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objdump/
H A DMachODump.h21 class MachOObjectFile; variable
58 Error getMachORelocationValueString(const object::MachOObjectFile *Obj,
65 void printMachOUnwindInfo(const object::MachOObjectFile *O);
H A DMachODump.cpp123 static const Target *GetTarget(const MachOObjectFile *MachOObj, in GetTarget()
292 static void getSectionsAndSymbols(MachOObjectFile *MachOObj, in getSectionsAndSymbols()
356 static void printRelocationTargetName(const MachOObjectFile *O, in printRelocationTargetName()
429 Error objdump::getMachORelocationValueString(const MachOObjectFile *Obj, in getMachORelocationValueString()
607 static void PrintIndirectSymbolTable(MachOObjectFile *O, bool verbose, in PrintIndirectSymbolTable()
663 static void PrintIndirectSymbols(MachOObjectFile *O, bool verbose) { in PrintIndirectSymbols()
806 static void PrintRelocationEntries(const MachOObjectFile *O, in PrintRelocationEntries()
981 static void PrintRelocations(const MachOObjectFile *O, const bool verbose) { in PrintRelocations()
1045 static void PrintFunctionStarts(MachOObjectFile *O) { in PrintFunctionStarts()
1047 for (const MachOObjectFile::LoadCommandInfo &Command : O->load_commands()) { in PrintFunctionStarts()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/JITLink/
H A DMachOLinkGraphBuilder.h84 MachOLinkGraphBuilder(const object::MachOObjectFile &Obj, Triple TT,
89 const object::MachOObjectFile &getObject() const { return Obj; } in getObject()
178 static unsigned getPointerSize(const object::MachOObjectFile &Obj);
179 static support::endianness getEndianness(const object::MachOObjectFile &Obj);
210 const object::MachOObjectFile &Obj;
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp368 if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj)) in isSymbolList64Bit()
396 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); in darwinPrintSymbol()
422 H_64 = MachO->MachOObjectFile::getHeader64(); in darwinPrintSymbol()
440 H = MachO->MachOObjectFile::getHeader(); in darwinPrintSymbol()
691 static void darwinPrintStab(MachOObjectFile *MachO, const NMSymbol &S) { in darwinPrintStab()
821 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); in sortAndPrintSymbolList()
1033 static char getSymbolNMTypeChar(MachOObjectFile &Obj, basic_symbol_iterator I) { in getSymbolNMTypeChar()
1149 if (isa<MachOObjectFile>(Obj) || !(Symflags & object::SymbolRef::SF_Weak)) in getNMSectionTagAndName()
1156 if (!isa<MachOObjectFile>(Obj) && (Symflags & object::SymbolRef::SF_Weak)) in getNMSectionTagAndName()
1171 else if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj)) in getNMSectionTagAndName()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/MachO/
H A DMachOObjcopy.h17 class MachOObjectFile; variable
28 object::MachOObjectFile &In, raw_ostream &Out);
H A DMachOReader.h28 const object::MachOObjectFile &MachOObj;
47 explicit MachOReader(const object::MachOObjectFile &Obj) : MachOObj(Obj) {} in MachOReader()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-lipo/
H A Dllvm-lipo.cpp138 if (!MachOObjectFile::isValidArch(ArchitectureName)) { in validateArchitectureName()
143 for (auto arch : MachOObjectFile::getValidArchs()) in validateArchitectureName()
332 ? Slice(*cast<MachOObjectFile>(B)) in readInputBinaries()
372 dyn_cast<MachOObjectFile>(InputBinaries.front().getBinary())) { in verifyArch()
389 Expected<std::unique_ptr<MachOObjectFile>> MachOObjOrError = in printBinaryArchs()
422 if (const auto *MachO = dyn_cast<MachOObjectFile>(Binary)) { in printBinaryArchs()
481 Expected<std::unique_ptr<MachOObjectFile>> Obj = in thinSlice()
564 Expected<std::unique_ptr<MachOObjectFile>> BinaryOrError = in buildSlices()
582 } else if (const auto *O = dyn_cast<MachOObjectFile>(InputBinary)) { in buildSlices()
663 auto O = dyn_cast<MachOObjectFile>(ReplacementBinary); in buildReplacementSlices()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-gsymutil/
H A Dllvm-gsymutil.cpp174 static uint32_t getCPUType(MachOObjectFile &MachO) { in getCPUType()
182 static bool filterArch(MachOObjectFile &Obj) { in filterArch()
235 getImageBaseAddress(const object::MachOObjectFile *MachO) { in getImageBaseAddress()
265 if (const auto *MachO = dyn_cast<object::MachOObjectFile>(&Obj)) in getImageBaseAddress()
365 std::vector<std::unique_ptr<MachOObjectFile>> FilterObjs; in handleBuffer()
/netbsd-src/external/apache2/llvm/dist/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