Lines Matching refs:Rel

54   for (const coff_relocation &Rel : Relocs)  in readRelocTargets()  local
55 RelocTargets.push_back(File->getSymbol(Rel.SymbolTableIndex)); in readRelocTargets()
321 const coff_relocation &Rel) { in maybeReportRelocationToDiscarded() argument
337 check(File->getCOFFObj()->getSymbol(Rel.SymbolTableIndex)); in maybeReportRelocationToDiscarded()
342 getSymbolLocations(File, Rel.SymbolTableIndex)); in maybeReportRelocationToDiscarded()
356 const coff_relocation &Rel = Relocs[I]; in writeTo() local
362 if (Rel.VirtualAddress >= InputSize) { in writeTo()
367 uint8_t *Off = Buf + OutputSectionOff + Rel.VirtualAddress; in writeTo()
385 maybeReportRelocationToDiscarded(this, Sym, Rel); in writeTo()
392 uint64_t P = RVA + Rel.VirtualAddress; in writeTo()
395 applyRelX64(Off, Rel.Type, OS, S, P); in writeTo()
398 applyRelX86(Off, Rel.Type, OS, S, P); in writeTo()
401 applyRelARM(Off, Rel.Type, OS, S, P); in writeTo()
404 applyRelARM64(Off, Rel.Type, OS, S, P); in writeTo()
416 static uint8_t getBaserelType(const coff_relocation &Rel) { in getBaserelType() argument
419 if (Rel.Type == IMAGE_REL_AMD64_ADDR64) in getBaserelType()
423 if (Rel.Type == IMAGE_REL_I386_DIR32) in getBaserelType()
427 if (Rel.Type == IMAGE_REL_ARM_ADDR32) in getBaserelType()
429 if (Rel.Type == IMAGE_REL_ARM_MOV32T) in getBaserelType()
433 if (Rel.Type == IMAGE_REL_ARM64_ADDR64) in getBaserelType()
447 const coff_relocation &Rel = Relocs[I]; in getBaserels() local
448 uint8_t Ty = getBaserelType(Rel); in getBaserels()
456 Res->emplace_back(RVA + Rel.VirtualAddress, Ty); in getBaserels()
545 for (const coff_relocation &Rel : Relocs) { in getRuntimePseudoRelocs() local
547 dyn_cast_or_null<Defined>(File->getSymbol(Rel.SymbolTableIndex)); in getRuntimePseudoRelocs()
550 int SizeInBits = getRuntimePseudoRelocSize(Rel.Type); in getRuntimePseudoRelocs()
554 File->getCOFFObj()->getRelocationTypeName(Rel.Type) + " in " + in getRuntimePseudoRelocs()
561 RuntimePseudoReloc(Target, this, Rel.VirtualAddress, SizeInBits)); in getRuntimePseudoRelocs()