Searched refs:Obj (Results 26 - 50 of 201) sorted by relevance

123456789

/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DCOFFDump.cpp161 static Error resolveSectionAndAddress(const COFFObjectFile *Obj, argument
172 ResolvedSection = Obj->getCOFFSection(**Iter);
195 getSectionContents(const COFFObjectFile *Obj, argument
202 if (Error E = resolveSectionAndAddress(Obj, Sym, Section, Addr))
204 return Obj->getSectionContents(Section, Contents);
236 printSEHTable(const COFFObjectFile *Obj, uint32_t TableVA, int Count) { argument
241 if (Error E = Obj->getVaPtr(TableVA, IntPtr))
242 reportError(std::move(E), Obj->getFileName());
247 outs() << format(" 0x%x", P[I] + Obj->getPE32Header()->ImageBase);
272 static void printTLSDirectory(const COFFObjectFile *Obj) { argument
303 printLoadConfiguration(const COFFObjectFile *Obj) argument
350 printImportTables(const COFFObjectFile *Obj) argument
396 printExportTable(const COFFObjectFile *Obj) argument
448 getPDataSection(const COFFObjectFile *Obj, std::vector<RelocationRef> &Rels, const RuntimeFunction *&RFStart, int &NumRFs) argument
477 getCOFFRelocationValueString(const COFFObjectFile *Obj, const RelocationRef &Rel, SmallVectorImpl<char> &Result) argument
531 printRuntimeFunction(const COFFObjectFile *Obj, const RuntimeFunction &RF) argument
554 printRuntimeFunctionRels(const COFFObjectFile *Obj, const RuntimeFunction &RF, uint64_t SectionOffset, const std::vector<RelocationRef> &Rels) argument
600 printCOFFUnwindInfo(const COFFObjectFile *Obj) argument
629 printCOFFFileHeader(const object::ObjectFile *Obj) argument
[all...]
H A DWasmDump.h26 Error getWasmRelocationValueString(const object::WasmObjectFile *Obj,
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/COFF/
H A DCOFFObjcopy.cpp35 static uint64_t getNextRVA(const Object &Obj) { argument
36 if (Obj.getSections().empty())
38 const Section &Last = Obj.getSections().back();
40 Obj.IsPE ? Obj.PeHeader.SectionAlignment : 1);
60 static void addSection(Object &Obj, StringRef Name, ArrayRef<uint8_t> Contents, argument
69 Sec.Header.VirtualAddress = NeedVA ? getNextRVA(Obj) : 0u;
72 Obj.IsPE ? Obj.PeHeader.FileAlignment : 1)
81 Obj
84 addGnuDebugLink(Object &Obj, StringRef DebugLinkFile) argument
129 handleArgs(const CopyConfig &Config, Object &Obj) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/ELF/
H A DELFObjcopy.cpp65 static bool onlyKeepDWOPred(const Object &Obj, const SectionBase &Sec) { argument
67 if (&Sec == Obj.SectionNames)
137 Object &Obj, Buffer &Buf,
142 return std::make_unique<ELFWriter<ELF32LE>>(Obj, Buf, !Config.StripSections,
145 return std::make_unique<ELFWriter<ELF64LE>>(Obj, Buf, !Config.StripSections,
148 return std::make_unique<ELFWriter<ELF32BE>>(Obj, Buf, !Config.StripSections,
151 return std::make_unique<ELFWriter<ELF64BE>>(Obj, Buf, !Config.StripSections,
158 Object &Obj, Buffer &Buf,
162 return std::make_unique<BinaryWriter>(Obj, Buf);
164 return std::make_unique<IHexWriter>(Obj, Bu
136 createELFWriter(const CopyConfig &Config, Object &Obj, Buffer &Buf, ElfType OutputElfType) argument
157 createWriter(const CopyConfig &Config, Object &Obj, Buffer &Buf, ElfType OutputElfType) argument
287 dumpSectionToFile(StringRef SecName, StringRef Filename, Object &Obj) argument
316 replaceDebugSections( Object &Obj, SectionPred &RemovePred, function_ref<bool(const SectionBase &)> shouldReplace, function_ref<SectionBase *(const SectionBase *)> addSection) argument
350 updateAndRemoveSymbols(const CopyConfig &Config, Object &Obj) argument
445 replaceAndRemoveSections(const CopyConfig &Config, Object &Obj) argument
605 handleArgs(const CopyConfig &Config, Object &Obj, const Reader &Reader, ElfType OutputElfType) argument
760 writeOutput(const CopyConfig &Config, Object &Obj, Buffer &Out, ElfType OutputElfType) argument
772 std::unique_ptr<Object> Obj = Reader.create(true); local
785 std::unique_ptr<Object> Obj = Reader.create(true); local
799 std::unique_ptr<Object> Obj = Reader.create(!Config.SymbolsToAdd.empty()); local
[all...]
H A DObject.cpp40 uint8_t *B = Buf.getBufferStart() + Obj.ProgramHdrSegment.Offset +
1132 Obj->Flags = 0x0;
1133 Obj->Type = ET_REL;
1134 Obj->OSABI = ELFOSABI_NONE;
1135 Obj->ABIVersion = 0;
1136 Obj->Entry = 0x0;
1137 Obj->Machine = EM_NONE;
1138 Obj->Version = 1;
1141 void BasicELFBuilder::initHeaderSegment() { Obj->ElfHdrSegment.Index = 0; }
1144 auto &StrTab = Obj
1678 auto Obj = std::make_unique<Object>(); local
1818 ELFWriter(Object &Obj, Buffer &Buf, bool WSH, bool OnlyKeepDebug) argument
1991 layoutSectionsForOnlyKeepDebug(Object &Obj, uint64_t Off) argument
2127 removeUnneededSections(Object &Obj) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFDataExtractor.h22 const DWARFObject *Obj = nullptr; member in class:llvm::DWARFDataExtractor
28 DWARFDataExtractor(const DWARFObject &Obj, const DWARFSection &Section, argument
30 : DataExtractor(Section.Data, IsLittleEndian, AddressSize), Obj(&Obj),
46 Obj(Other.Obj), Section(Other.Section) {}
H A DDWARFDebugLoc.h66 const MCRegisterInfo *MRI, const DWARFObject &Obj,
80 const DWARFObject &Obj) const = 0;
107 const DWARFObject &Obj, DIDumpOptions DumpOpts,
117 const DWARFObject &Obj) const override;
131 const MCRegisterInfo *MRI, const DWARFObject &Obj,
137 const DWARFObject &Obj) const override;
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldMachO.cpp37 getObjectForDebug(const ObjectFile &Obj) const override {
59 const MachOObjectFile &Obj = local
62 Obj.getRelocation(RelI->getRawDataRefImpl());
65 uint32_t RelocType = Obj.getAnyRelocationType(RE);
66 bool IsPCRel = Obj.getAnyRelocationPCRel(RE);
67 unsigned Size = Obj.getAnyRelocationLength(RE);
73 unsigned SymbolBaseAddr = Obj.getScatteredRelocationValue(RE);
74 section_iterator TargetSI = getSectionByAddress(Obj, SymbolBaseAddr);
75 assert(TargetSI != Obj.section_end() && "Can't find section for symbol");
81 findOrEmitSection(Obj, TargetSectio
101 const MachOObjectFile &Obj = local
163 getSectionByAddress(const MachOObjectFile &Obj, uint64_t Addr) argument
180 populateIndirectSymbolPointersSection( const MachOObjectFile &Obj, const SectionRef &PTSection, unsigned PTSectionID) argument
228 finalizeLoad(const ObjectFile &Obj, ObjSectionToIDMap &SectionMap) argument
[all...]
H A DRuntimeDyldMachO.h67 const MachOObjectFile &Obj = local
70 Obj.getRelocation(RI->getRawDataRefImpl());
72 bool IsPCRel = Obj.getAnyRelocationPCRel(RelInfo);
73 unsigned Size = Obj.getAnyRelocationLength(RelInfo);
76 static_cast<MachO::RelocationInfoType>(Obj.getAnyRelocationType(RelInfo));
112 static section_iterator getSectionByAddress(const MachOObjectFile &Obj,
117 Error populateIndirectSymbolPointersSection(const MachOObjectFile &Obj,
134 bool isCompatibleFile(const object::ObjectFile &Obj) const override;
158 Error finalizeLoad(const ObjectFile &Obj,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldMachOX86_64.h38 const MachOObjectFile &Obj = variable
41 Obj.getRelocation(RelI->getRawDataRefImpl());
42 uint32_t RelType = Obj.getAnyRelocationType(RelInfo);
45 return processSubtractRelocation(SectionID, RelI, Obj, ObjSectionToID);
47 assert(!Obj.isRelocationScattered(RelInfo) &&
50 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI));
53 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID))
58 bool IsExtern = Obj.getPlainRelocationExternal(RelInfo);
123 Error finalizeSection(const ObjectFile &Obj, unsigned SectionID, argument
161 const MachOObjectFile &Obj local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DCOFFDumper.cpp82 COFFDumper(const llvm::object::COFFObjectFile *Obj, ScopedPrinter &Writer) argument
83 : ObjDumper(Writer), Obj(Obj), Writer(Writer), Types(100) {}
180 const llvm::object::COFFObjectFile *Obj; member in class:__anon4859::COFFDumper
200 const COFFObjectFile *Obj, StringRef SectionContents)
202 Sec = Obj->getCOFFSection(SR);
246 std::error_code createCOFFDumper(const object::ObjectFile *Obj, argument
249 const COFFObjectFile *COFFObj = dyn_cast<COFFObjectFile>(Obj);
265 auto SymI = Obj->symbol_end();
274 if (SymI == Obj
199 COFFObjectDumpDelegate(COFFDumper &CD, const SectionRef &SR, const COFFObjectFile *Obj, StringRef SectionContents) argument
585 getSymbolAuxData(const COFFObjectFile *Obj, COFFSymbolRef Symbol, uint8_t AuxSymbolIdx, const T *&Aux) argument
1457 getSectionName(const llvm::object::COFFObjectFile *Obj, int32_t SectionNumber, const coff_section *Section) argument
[all...]
H A DXCOFFDumper.cpp27 XCOFFDumper(const XCOFFObjectFile &Obj, ScopedPrinter &Writer) argument
28 : ObjDumper(Writer), Obj(Obj) {}
48 const XCOFFObjectFile &Obj; member in class:__anon4875::XCOFFDumper
54 W.printHex("Magic", Obj.getMagic());
55 W.printNumber("NumberOfSections", Obj.getNumberOfSections());
58 int32_t TimeStamp = Obj.getTimeStamp();
80 if (Obj.is64Bit()) {
81 W.printHex("SymbolTableOffset", Obj.getSymbolTableOffset64());
82 W.printNumber("SymbolTableEntries", Obj
518 createXCOFFDumper(const object::ObjectFile *Obj, ScopedPrinter &Writer, std::unique_ptr<ObjDumper> &Result) argument
[all...]
H A DWasmDumper.cpp60 WasmDumper(const WasmObjectFile *Obj, ScopedPrinter &Writer) argument
61 : ObjDumper(Writer), Obj(Obj) {}
77 const WasmObjectFile *Obj; member in class:__anon4874::WasmDumper
81 W.printHex("Version", Obj->getHeader().Version);
89 const wasm::WasmRelocation &WasmReloc = Obj->getWasmRelocation(Reloc);
93 if (SI != Obj->symbol_end())
94 SymName = unwrapOrError(Obj->getFileName(), SI->getName());
125 for (const SectionRef &Section : Obj->sections()) {
127 StringRef Name = unwrapOrError(Obj
244 createWasmDumper(const object::ObjectFile *Obj, ScopedPrinter &Writer, std::unique_ptr<ObjDumper> &Result) argument
[all...]
H A DObjDumper.cpp41 getSectionRefsByNameOrIndex(const object::ObjectFile *Obj, argument
54 SecIndex = Obj->isELF() ? 0 : 1;
55 for (object::SectionRef SecRef : Obj->sections()) {
56 StringRef SecName = unwrapOrError(Obj->getFileName(), SecRef.getName());
72 Obj->getFileName());
78 Obj->getFileName());
83 void ObjDumper::printSectionsAsString(const object::ObjectFile *Obj, argument
87 getSectionRefsByNameOrIndex(Obj, Sections)) {
89 unwrapOrError(Obj->getFileName(), Section.getName());
97 unwrapOrError(Obj
118 printSectionsAsHex(const object::ObjectFile *Obj, ArrayRef<std::string> Sections) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/MachO/
H A DMachOObjcopy.cpp45 static Error removeSections(const CopyConfig &Config, Object &Obj) { argument
73 return Obj.removeSections(RemovePred);
76 static void markSymbols(const CopyConfig &Config, Object &Obj) { argument
78 for (IndirectSymbolEntry &ISE : Obj.IndirectSymTable.Symbols)
83 static void updateAndRemoveSymbols(const CopyConfig &Config, Object &Obj) { argument
84 for (SymbolEntry &Sym : Obj.SymTable) {
90 auto RemovePred = [Config, &Obj](const std::unique_ptr<SymbolEntry> &N) {
98 if (Config.StripSwiftSymbols && (Obj.Header.Flags & MachO::MH_DYLDLINK) &&
99 Obj.SwiftVersion && *Obj
131 processLoadCommands(const CopyConfig &Config, Object &Obj) argument
228 dumpSectionToFile(StringRef SecName, StringRef Filename, Object &Obj) argument
250 addSection(StringRef SecName, StringRef Filename, Object &Obj) argument
300 handleArgs(const CopyConfig &Config, Object &Obj) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DELF_x86_64.cpp61 const object::ELFFile<object::ELF64LE> &Obj; member in class:llvm::jitlink::ELFLinkGraphBuilder_x86_64
65 bool isRelocatable() { return Obj.getHeader()->e_type == llvm::ELF::ET_REL; }
68 getEndianness(const object::ELFFile<object::ELF64LE> &Obj) { argument
69 return Obj.isLE() ? support::little : support::big;
73 unsigned getPointerSize(const object::ELFFile<object::ELF64LE> &Obj) { argument
74 return Obj.getHeader()->getFileClass() == ELF::ELFCLASS64 ? 8 : 4;
88 auto Symbols = Obj.symbols(&SecRef);
95 auto StrTabSec = Obj.getSection(SecRef.sh_link);
98 auto StringTable = Obj.getStringTable(*StrTabSec);
134 auto Name = Obj
373 ELFLinkGraphBuilder_x86_64(std::string filename, const object::ELFFile<object::ELF64LE> &Obj) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/GSYM/
H A DObjectFileTransformer.h34 /// \param Obj The object file that contains the DWARF debug info.
43 static llvm::Error convert(const object::ObjectFile &Obj,
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/
H A DObjectCache.h32 virtual void notifyObjectCompiled(const Module *M, MemoryBufferRef Obj) = 0;
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Object/
H A DRelocationResolver.h37 getRelocationResolver(const ObjectFile &Obj);
H A DMachOUniversal.h109 ObjectForArch Obj; member in class:llvm::object::MachOUniversalBinary::object_iterator
111 object_iterator(const ObjectForArch &Obj) : Obj(Obj) {} argument
112 const ObjectForArch *operator->() const { return &Obj; }
113 const ObjectForArch &operator*() const { return Obj; }
116 return Obj == Other.Obj;
123 Obj = Obj
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-dwarfdump/
H A DSectionSizes.cpp39 static void prettyPrintSectionSizes(const ObjectFile &Obj, argument
81 void dwarfdump::calculateSectionSizes(const ObjectFile &Obj, argument
85 Sizes.TotalObjectSize = Obj.getData().size();
87 for (const SectionRef &Section : Obj.sections()) {
106 bool dwarfdump::collectObjectSectionSizes(ObjectFile &Obj, argument
113 calculateSectionSizes(Obj, Sizes, Filename);
118 prettyPrintSectionSizes(Obj, Sizes, OS);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DCOFFEmitter.cpp37 COFFParser(COFFYAML::Object &Obj, yaml::ErrorHandler EH) argument
38 : Obj(Obj), SectionTableStart(0), SectionTableSize(0), ErrHandler(EH) {
45 return static_cast<int32_t>(Obj.Sections.size()) >
49 bool isPE() const { return Obj.OptionalHeader.hasValue(); }
51 return Obj.Header.Machine == COFF::IMAGE_FILE_MACHINE_AMD64 ||
52 Obj.Header.Machine == COFF::IMAGE_FILE_MACHINE_ARM64;
56 return Obj.OptionalHeader->Header.FileAlignment;
68 for (std::vector<COFFYAML::Section>::iterator i = Obj.Sections.begin(),
69 e = Obj
150 COFFYAML::Object &Obj; member in struct:__anon3747::COFFParser
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/
H A DObjectFileTransformer.cpp25 static std::vector<uint8_t> getUUID(const object::ObjectFile &Obj) { argument
28 if (auto *MachO = dyn_cast<object::MachOObjectFile>(&Obj)) {
32 } else if (isa<object::ELFObjectFileBase>(&Obj)) {
34 for (const object::SectionRef &Sect : Obj.sections()) {
51 DataExtractor Decoder(BuildIDData, Obj.makeTriple().isLittleEndian(), 8);
70 llvm::Error ObjectFileTransformer::convert(const object::ObjectFile &Obj, argument
75 const bool IsMachO = isa<MachOObjectFile>(&Obj);
76 const bool IsELF = isa<ELFObjectFileBase>(&Obj);
79 Gsym.setUUID(getUUID(Obj));
83 for (const object::SymbolRef &Sym : Obj
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/wasm/
H A DWasmObjcopy.cpp25 Object &Obj) {
26 for (const Section &Sec : Obj.Sections) {
43 static Error handleArgs(const CopyConfig &Config, Object &Obj) { argument
49 if (Error E = dumpSectionToFile(SecName, FileName, Obj))
53 Obj.removeSections([&Config](const Section &Sec) {
73 Obj.addSectionWithOwnedContents(Sec, std::move(Buf));
102 Object *Obj = ObjOrErr->get();
103 assert(Obj && "Unable to deserialize Wasm object");
104 if (Error E = handleArgs(Config, *Obj))
106 Writer TheWriter(*Obj, Ou
24 dumpSectionToFile(StringRef SecName, StringRef Filename, Object &Obj) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Object/
H A DSymbolicFile.cpp82 Expected<std::unique_ptr<ObjectFile>> Obj = local
84 if (!Obj || !Context)
85 return std::move(Obj);
88 IRObjectFile::findBitcodeInObject(*Obj->get());
91 return std::move(Obj);

Completed in 609 milliseconds

123456789