X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gold%2Freloc.h;h=da14ec1828a2c393d6109f8ed3033b8c52304133;hb=d4f3a0e91896a0aad797e221ba6876ba7f0cd05c;hp=ec448acc152be041622e1db688f3eccfdb2e0fa1;hpb=2c175ebc7499ac7cfae6679f7b1ecbf43e822772;p=platform%2Fupstream%2Fbinutils.git diff --git a/gold/reloc.h b/gold/reloc.h index ec448ac..da14ec1 100644 --- a/gold/reloc.h +++ b/gold/reloc.h @@ -1,7 +1,6 @@ // reloc.h -- relocate input files for gold -*- C++ -*- -// Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012 -// Free Software Foundation, Inc. +// Copyright (C) 2006-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor . // This file is part of gold. @@ -38,7 +37,7 @@ namespace gold class General_options; class Object; class Relobj; -class Read_relocs_data; +struct Read_relocs_data; class Symbol; class Layout; class Output_data; @@ -873,6 +872,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_;