Lines Matching defs:relocations
17 // relative relocations.
18 void GetDeltas(const std::vector<ELF::Rel>& relocations,
20 CHECK(relocations.size() >= 2);
22 for (size_t i = 0; i < relocations.size() - 1; ++i) {
23 const ELF::Rel* first = &relocations[i];
26 const ELF::Rel* second = &relocations[i + 1];
71 std::vector<ELF::Rel>* relocations) {
76 relocations->push_back(initial);
85 // Generate relocations for this count and delta pair.
91 relocations->push_back(relocation);
99 // Encode relative relocations into a run-length encoded (packed)
101 void RelocationRunLengthCodec::Encode(const std::vector<ELF::Rel>& relocations,
105 if (relocations.size() < 2)
109 GetDeltas(relocations, &deltas);
116 packed->push_back(relocations[0].r_offset);
123 // Decode relative relocations from a run-length encoded (packed)
126 std::vector<ELF::Rel>* relocations) {
141 Uncondense(addr, packed, 2, 2 + (pairs_count << 1), relocations);