Lines Matching defs:rel

360                                              const coff_relocation &rel,
377 check(file->getCOFFObj()->getSymbol(rel.SymbolTableIndex));
383 getSymbolLocations(file, rel.SymbolTableIndex);
403 for (const coff_relocation &rel : getRelocs()) {
408 if (rel.VirtualAddress >= inputSize) {
413 applyRelocation(buf + rel.VirtualAddress, rel);
424 const coff_relocation &rel) const {
425 auto *sym = dyn_cast_or_null<Defined>(file->getSymbol(rel.SymbolTableIndex));
440 maybeReportRelocationToDiscarded(this, sym, rel, ctx.config.mingw);
447 uint64_t p = rva + rel.VirtualAddress;
451 applyRelX64(off, rel.Type, os, s, p, imageBase);
454 applyRelX86(off, rel.Type, os, s, p, imageBase);
457 applyRelARM(off, rel.Type, os, s, p, imageBase);
460 applyRelARM64(off, rel.Type, os, s, p, imageBase);
495 const coff_relocation &rel = relocsData[nextRelocIndex];
499 if (rel.VirtualAddress < vaBegin)
501 if (rel.VirtualAddress + 1 >= vaEnd)
503 applyRelocation(&buf[rel.VirtualAddress - vaBegin], rel);
525 static uint8_t getBaserelType(const coff_relocation &rel,
529 if (rel.Type == IMAGE_REL_AMD64_ADDR64)
531 if (rel.Type == IMAGE_REL_AMD64_ADDR32)
535 if (rel.Type == IMAGE_REL_I386_DIR32)
539 if (rel.Type == IMAGE_REL_ARM_ADDR32)
541 if (rel.Type == IMAGE_REL_ARM_MOV32T)
545 if (rel.Type == IMAGE_REL_ARM64_ADDR64)
558 for (const coff_relocation &rel : getRelocs()) {
559 uint8_t ty = getBaserelType(rel, getArch());
562 Symbol *target = file->getSymbol(rel.SymbolTableIndex);
565 res->emplace_back(rva + rel.VirtualAddress, ty);
670 for (const coff_relocation &rel : getRelocs()) {
672 dyn_cast_or_null<Defined>(file->getSymbol(rel.SymbolTableIndex));
682 int sizeInBits = getRuntimePseudoRelocSize(rel.Type, getArch());
686 file->getCOFFObj()->getRelocationTypeName(rel.Type) + " in " +
699 res.emplace_back(target, this, rel.VirtualAddress, sizeInBits);
980 // to ELF .rel.dyn, but Windows does more to reduce it (probably because