Home
last modified time | relevance | path

Searched refs:coff_relocation (Results 1 – 15 of 15) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Object/
H A DCOFFObjectFile.cpp363 const coff_relocation *FirstReloc; in getNumberOfRelocations()
376 static const coff_relocation *
1213 const coff_relocation *R = toRel(Rel); in getRelocationOffset()
1218 const coff_relocation *R = toRel(Rel); in getRelocationSymbol()
1232 const coff_relocation* R = toRel(Rel); in getRelocationType()
1253 const coff_relocation *
1258 ArrayRef<coff_relocation>
1366 const coff_relocation *Reloc = toRel(Rel); in getRelocationTypeName()
1858 for (const coff_relocation &R : OrigRelocs) in load()
1860 llvm::sort(Relocs, [](const coff_relocation *A, const coff_relocation *B) { in load()
[all …]
H A DCOFFImportFile.cpp197 NumberOfRelocations * sizeof(coff_relocation) + in createImportDescriptor()
226 NumberOfRelocations * sizeof(coff_relocation)), in createImportDescriptor()
242 const coff_relocation RelocationTable[NumberOfRelocations] = { in createImportDescriptor()
H A DWindowsResource.cpp978 reinterpret_cast<coff_relocation *>(BufferStart + CurrentOffset); in writeFirstSectionRelocations()
997 CurrentOffset += sizeof(coff_relocation); in writeFirstSectionRelocations()
/llvm-project-15.0.7/lld/COFF/
H A DChunks.cpp327 const coff_relocation &rel) { in maybeReportRelocationToDiscarded()
368 for (const coff_relocation &rel : getRelocs()) { in writeTo()
383 const coff_relocation &rel) const { in applyRelocation()
426 auto cmpByVa = [](const coff_relocation &l, const coff_relocation &r) { in sortRelocations()
432 MutableArrayRef<coff_relocation> newRelocs( in sortRelocations()
433 bAlloc().Allocate<coff_relocation>(relocsSize), relocsSize); in sortRelocations()
434 memcpy(newRelocs.data(), relocsData, relocsSize * sizeof(coff_relocation)); in sortRelocations()
452 const coff_relocation &rel = relocsData[nextRelocIndex]; in writeAndRelocateSubsection()
482 static uint8_t getBaserelType(const coff_relocation &rel) { in getBaserelType()
514 for (const coff_relocation &rel : getRelocs()) { in getBaserels()
[all …]
H A DChunks.h30 using llvm::object::coff_relocation;
185 symbol_iterator, const coff_relocation *,
191 symbol_iterator(ObjFile *file, const coff_relocation *i) in symbol_iterator()
223 void applyRelocation(uint8_t *off, const coff_relocation &rel) const;
262 ArrayRef<coff_relocation> getRelocs() const { in getRelocs()
267 void setRelocs(ArrayRef<coff_relocation> newRelocs) { in setRelocs()
351 const coff_relocation *relocsData;
H A DICF.cpp155 auto eq = [&](const coff_relocation &r1, const coff_relocation &r2) { in equalsConstant()
185 auto eq = [&](const coff_relocation &r1, const coff_relocation &r2) { in equalsVariable()
H A DWriter.cpp433 ArrayRef<coff_relocation> originalRelocs = in createThunks()
436 const coff_relocation &rel = originalRelocs[j]; in createThunks()
484 ArrayRef<coff_relocation> curRelocs = sc->getRelocs(); in createThunks()
485 MutableArrayRef<coff_relocation> newRelocs; in createThunks()
488 bAlloc().Allocate<coff_relocation>(originalRelocs.size()), in createThunks()
492 const_cast<coff_relocation *>(curRelocs.data()), curRelocs.size()); in createThunks()
519 ArrayRef<coff_relocation> relocs = sc->getRelocs(); in verifyRanges()
521 const coff_relocation &rel = relocs[j]; in verifyRanges()
1627 for (const coff_relocation &reloc : sc->getRelocs()) { in markSymbolsWithRelocations()
H A DSymbolTable.cpp171 for (const coff_relocation &r : sc->getRelocs()) { in getSymbolLocations()
H A DPDB.cpp1711 for (const coff_relocation &r : dbgC->getRelocs()) { in findLineTable()
/llvm-project-15.0.7/llvm/lib/ObjCopy/COFF/
H A DCOFFObject.h29 Relocation(const object::coff_relocation &R) : Reloc(R) {} in Relocation()
31 object::coff_relocation Reloc;
H A DCOFFReader.cpp72 ArrayRef<coff_relocation> Relocs = COFFObj.getRelocations(Sec); in readSections()
73 for (const coff_relocation &R : Relocs) in readSections()
H A DCOFFWriter.cpp105 FileSize += sizeof(coff_relocation); in layoutSections()
111 FileSize += S.Relocs.size() * sizeof(coff_relocation); in layoutSections()
330 object::coff_relocation R; in writeSections()
/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DCOFF.h474 struct coff_relocation { struct
833 const coff_relocation *toRel(DataRefImpl Rel) const;
982 const coff_relocation *getCOFFRelocation(const RelocationRef &Reloc) const;
1073 ArrayRef<coff_relocation> getRelocations(const coff_section *Sec) const;
1267 std::vector<const coff_relocation *> Relocs;
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/
H A DCOFF_x86_64.cpp65 const object::coff_relocation *COFFRel = getObject().getCOFFRelocation(Rel); in addSingleRelocation()
/llvm-project-15.0.7/llvm/tools/obj2yaml/
H A Dcoff2yaml.cpp199 const object::coff_relocation *reloc = Obj.getCOFFRelocation(Reloc); in dumpSections()