Lines Matching defs:rel

359                                              const coff_relocation &rel,
376 check(file->getCOFFObj()->getSymbol(rel.SymbolTableIndex));
381 getSymbolLocations(file, rel.SymbolTableIndex);
401 for (const coff_relocation &rel : getRelocs()) {
406 if (rel.VirtualAddress >= inputSize) {
411 applyRelocation(buf + rel.VirtualAddress, rel);
422 const coff_relocation &rel) const {
423 auto *sym = dyn_cast_or_null<Defined>(file->getSymbol(rel.SymbolTableIndex));
437 maybeReportRelocationToDiscarded(this, sym, rel, file->ctx.config.mingw);
444 uint64_t p = rva + rel.VirtualAddress;
448 applyRelX64(off, rel.Type, os, s, p, imageBase);
451 applyRelX86(off, rel.Type, os, s, p, imageBase);
454 applyRelARM(off, rel.Type, os, s, p, imageBase);
457 applyRelARM64(off, rel.Type, os, s, p, imageBase);
492 const coff_relocation &rel = relocsData[nextRelocIndex];
496 if (rel.VirtualAddress < vaBegin)
498 if (rel.VirtualAddress + 1 >= vaEnd)
500 applyRelocation(&buf[rel.VirtualAddress - vaBegin], rel);
522 static uint8_t getBaserelType(const coff_relocation &rel,
526 if (rel.Type == IMAGE_REL_AMD64_ADDR64)
528 if (rel.Type == IMAGE_REL_AMD64_ADDR32)
532 if (rel.Type == IMAGE_REL_I386_DIR32)
536 if (rel.Type == IMAGE_REL_ARM_ADDR32)
538 if (rel.Type == IMAGE_REL_ARM_MOV32T)
542 if (rel.Type == IMAGE_REL_ARM64_ADDR64)
555 for (const coff_relocation &rel : getRelocs()) {
556 uint8_t ty = getBaserelType(rel, getArch());
559 Symbol *target = file->getSymbol(rel.SymbolTableIndex);
562 res->emplace_back(rva + rel.VirtualAddress, ty);
652 for (const coff_relocation &rel : getRelocs()) {
654 dyn_cast_or_null<Defined>(file->getSymbol(rel.SymbolTableIndex));
665 getRuntimePseudoRelocSize(rel.Type, file->ctx.config.machine);
669 file->getCOFFObj()->getRelocationTypeName(rel.Type) + " in " +
682 res.emplace_back(target, this, rel.VirtualAddress, sizeInBits);
964 // to ELF .rel.dyn, but Windows does more to reduce it (probably because