Lines Matching full:relocations
11 // flags, contents, and relocations.
41 /// A class to manage binary sections that also manages related relocations.
60 // Relocations associated with this section. Relocation offsets are
63 RelocationSetType Relocations;
65 // Dynamic relocations associated with this section. Relocation offsets are
69 // Pending relocations for this section.
130 /// Get the set of relocations referring to data in this section that
153 Relocations(Section.Relocations),
321 /// Iterate over all non-pending relocations for this section.
322 iterator_range<RelocationSetType::iterator> relocations() {
323 return make_range(Relocations.begin(), Relocations.end());
326 /// Iterate over all non-pending relocations for this section.
327 iterator_range<RelocationSetType::const_iterator> relocations() const {
328 return make_range(Relocations.begin(), Relocations.end());
331 /// Iterate over all dynamic relocations for this section.
336 /// Iterate over all dynamic relocations for this section.
341 /// Does this section have any non-pending relocations?
342 bool hasRelocations() const { return !Relocations.empty(); }
344 /// Does this section have any pending relocations?
349 auto Itr = Relocations.find(Offset);
350 if (Itr != Relocations.end()) {
351 auto End = Relocations.upper_bound(Offset);
352 Relocations.erase(Itr, End);
366 Relocations.emplace(Relocation{Offset, Symbol, Type, Addend, Value});
404 auto Itr = Relocations.find(Offset);
405 return Itr != Relocations.end() ? &*Itr : nullptr;
474 /// Emit the section as data, possibly with relocations.
485 /// Flush all pending relocations to patch original contents of sections