Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/lib/Object/
H A DCOFFObjectFile.cpp363 const coff_relocation *FirstReloc; in getNumberOfRelocations()
376 static const coff_relocation *
1159 const coff_relocation *R = toRel(Rel); in getRelocationOffset()
1164 const coff_relocation *R = toRel(Rel); in getRelocationSymbol()
1178 const coff_relocation* R = toRel(Rel); in getRelocationType()
1199 const coff_relocation *
1204 ArrayRef<coff_relocation>
1312 const coff_relocation *Reloc = toRel(Rel); in getRelocationTypeName()
1799 for (const coff_relocation &R : OrigRelocs) in load()
1801 llvm::sort(Relocs, [](const coff_relocation *A, const coff_relocation *B) { in load()
[all …]
H A DCOFFImportFile.cpp193 NumberOfRelocations * sizeof(coff_relocation) + in createImportDescriptor()
222 NumberOfRelocations * sizeof(coff_relocation)), in createImportDescriptor()
238 const coff_relocation RelocationTable[NumberOfRelocations] = { in createImportDescriptor()
H A DWindowsResource.cpp980 reinterpret_cast<coff_relocation *>(BufferStart + CurrentOffset); in writeFirstSectionRelocations()
999 CurrentOffset += sizeof(coff_relocation); in writeFirstSectionRelocations()
/freebsd-13.1/contrib/llvm-project/lld/COFF/
H A DChunks.cpp325 const coff_relocation &rel) { in maybeReportRelocationToDiscarded()
366 for (const coff_relocation &rel : getRelocs()) { in writeTo()
381 const coff_relocation &rel) const { in applyRelocation()
424 auto cmpByVa = [](const coff_relocation &l, const coff_relocation &r) { in sortRelocations()
430 MutableArrayRef<coff_relocation> newRelocs( in sortRelocations()
431 bAlloc.Allocate<coff_relocation>(relocsSize), relocsSize); in sortRelocations()
432 memcpy(newRelocs.data(), relocsData, relocsSize * sizeof(coff_relocation)); in sortRelocations()
450 const coff_relocation &rel = relocsData[nextRelocIndex]; in writeAndRelocateSubsection()
480 static uint8_t getBaserelType(const coff_relocation &rel) { in getBaserelType()
512 for (const coff_relocation &rel : getRelocs()) { in getBaserels()
[all …]
H A DChunks.h30 using llvm::object::coff_relocation;
186 symbol_iterator, const coff_relocation *,
192 symbol_iterator(ObjFile *file, const coff_relocation *i) in symbol_iterator()
224 void applyRelocation(uint8_t *off, const coff_relocation &rel) const;
263 ArrayRef<coff_relocation> getRelocs() const { in getRelocs()
268 void setRelocs(ArrayRef<coff_relocation> newRelocs) { in setRelocs()
352 const coff_relocation *relocsData;
H A DICF.cpp154 auto eq = [&](const coff_relocation &r1, const coff_relocation &r2) { in equalsConstant()
184 auto eq = [&](const coff_relocation &r1, const coff_relocation &r2) { in equalsVariable()
H A DWriter.cpp440 ArrayRef<coff_relocation> originalRelocs = in createThunks()
443 const coff_relocation &rel = originalRelocs[j]; in createThunks()
491 ArrayRef<coff_relocation> curRelocs = sc->getRelocs(); in createThunks()
492 MutableArrayRef<coff_relocation> newRelocs; in createThunks()
495 bAlloc.Allocate<coff_relocation>(originalRelocs.size()), in createThunks()
499 const_cast<coff_relocation *>(curRelocs.data()), curRelocs.size()); in createThunks()
526 ArrayRef<coff_relocation> relocs = sc->getRelocs(); in verifyRanges()
528 const coff_relocation &rel = relocs[j]; in verifyRanges()
1624 for (const coff_relocation &reloc : sc->getRelocs()) { in markSymbolsWithRelocations()
H A DSymbolTable.cpp165 for (const coff_relocation &r : sc->getRelocs()) { in getSymbolLocations()
H A DPDB.cpp1711 for (const coff_relocation &r : dbgC->getRelocs()) { in findLineTable()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objcopy/COFF/
H A DObject.h29 Relocation(const object::coff_relocation &R) : Reloc(R) {} in Relocation()
31 object::coff_relocation Reloc;
H A DReader.cpp72 ArrayRef<coff_relocation> Relocs = COFFObj.getRelocations(Sec); in readSections()
73 for (const coff_relocation &R : Relocs) in readSections()
H A DWriter.cpp105 FileSize += sizeof(coff_relocation); in layoutSections()
111 FileSize += S.Relocs.size() * sizeof(coff_relocation); in layoutSections()
321 object::coff_relocation R; in writeSections()
/freebsd-13.1/contrib/llvm-project/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;
1265 std::vector<const coff_relocation *> Relocs;