Lines Matching defs:relocs
529 static bool relaxable(ArrayRef<Relocation> relocs, size_t i) {
530 return i + 1 != relocs.size() && relocs[i + 1].type == R_RISCV_RELAX;
585 const ArrayRef<Relocation> relocs = sec.relocs();
586 for (size_t i = 0, size = relocs.size(); i != size; ++i) {
587 const Relocation &rel = relocs[i];
610 tlsdescRelax = relaxable(relocs, i);
621 tlsdescRelax = relaxable(relocs, i);
641 const Relocation &rel1 = relocs[i + 1];
671 if (sec->relocs().size()) {
673 std::make_unique<uint32_t[]>(sec->relocs().size());
675 std::make_unique<RelType[]>(sec->relocs().size());
799 const MutableArrayRef<Relocation> relocs = sec.relocs();
806 std::fill_n(aux.relocTypes.get(), relocs.size(), R_RISCV_NONE);
808 for (auto [i, r] : llvm::enumerate(relocs)) {
831 if (relaxable(relocs, i))
838 if (relaxable(relocs, i))
844 if (relaxable(relocs, i))
849 tlsdescRelax = relaxable(relocs, i);
931 MutableArrayRef<Relocation> rels = sec->relocs();