]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gold/reloc.h
2012-03-21 Cary Coutant <ccoutant@google.com>
[thirdparty/binutils-gdb.git] / gold / reloc.h
index ec448acc152be041622e1db688f3eccfdb2e0fa1..4827600b38239006235dbd3a8c22065b977e4672 100644 (file)
@@ -873,6 +873,16 @@ class Track_relocs
   int
   advance(off_t offset);
 
+  // Checkpoint the current position in the reloc section.
+  section_size_type
+  checkpoint() const
+  { return this->pos_; }
+
+  // Reset the position to CHECKPOINT.
+  void
+  reset(section_size_type checkpoint)
+  { this->pos_ = checkpoint; }
+
  private:
   // The contents of the input object's reloc section.
   const unsigned char* prelocs_;