From 4973341a7d985b4d211b0b2ce14d95e2c05dbd37 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 21 Aug 2007 23:37:56 +0000 Subject: Implement --whole-archive. --- gold/fileread.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'gold/fileread.h') diff --git a/gold/fileread.h b/gold/fileread.h index 178e7f3..f3ac753 100644 --- a/gold/fileread.h +++ b/gold/fileread.h @@ -55,7 +55,7 @@ class File_read // Unlock the descriptor, permitting it to be closed if necessary. void unlock(); - + // Test whether the object is locked. bool is_locked(); @@ -65,12 +65,12 @@ class File_read // we can not read enough data. Otherwise *PBYTES is set to the // number of bytes read. const unsigned char* - get_view(off_t start, off_t size, off_t *pbytes = NULL); + get_view(off_t start, off_t size, off_t* pbytes = NULL); // Read data from the file into the buffer P. PBYTES is as in // get_view. void - read(off_t start, off_t size, void* p, off_t *pbytes = NULL); + read(off_t start, off_t size, void* p, off_t* pbytes = NULL); // Return a lasting view into the file. This is allocated with new, // and the caller is responsible for deleting it when done. The @@ -240,6 +240,12 @@ class Input_file filename() const { return this->file_.filename(); } + // Return the position dependent options. + const Position_dependent_options& + options() const + { return this->input_argument_->options(); } + + // Return the file. File_read& file() { return this->file_; } -- cgit v1.1